diff --git a/PowerEditor/src/tools/ChangeIcon/ChangeIcon.cpp b/PowerEditor/src/tools/ChangeIcon/ChangeIcon.cpp index 97b17a58d..2754bb2a5 100644 --- a/PowerEditor/src/tools/ChangeIcon/ChangeIcon.cpp +++ b/PowerEditor/src/tools/ChangeIcon/ChangeIcon.cpp @@ -121,7 +121,7 @@ bool Icon::readICO(TCHAR* filename) _entries = new ICONDIRENTRY[count()]; if(!ReadFile( hFile, _entries, sizeof(*_entries)*count(), &dwBytesRead, NULL )) { _tprintf(_T("Error reading file '%s'\n"), filename); return false; } // Read images - _imagesData=new LPBYTE[count()]; memset(_imagesData, sizeof(LPBYTE)*count(), 0); + _imagesData=new LPBYTE[count()]; memset(_imagesData, 0, sizeof(LPBYTE)*count()); for(int i=0; i