- solved by commit   71838d6
This commit is contained in:
Rainer Kottenhoff 2017-09-04 23:24:09 +02:00
parent 4bc42b7840
commit 3e23113b7f

View File

@ -1539,6 +1539,17 @@ BOOL EditLoadFile(
}
lpData = GlobalAlloc(GPTR,dwBufSize);
dwLastIOError = GetLastError();
if (!lpData)
{
CloseHandle(hFile);
*pbFileTooBig = FALSE;
Encoding_Source(CPI_NONE);
Encoding_SrcWeak(CPI_NONE);
return FALSE;
}
bReadSuccess = ReadAndDecryptFile(hwnd, hFile, (DWORD)GlobalSize(lpData) - 2, &lpData, &cbData);
dwLastIOError = GetLastError();
CloseHandle(hFile);