mirror of
https://github.com/rizonesoft/Notepad3.git
synced 2026-06-14 21:09:05 +08:00
+ NP2E issue #126 (https://github.com/ProgerXP/Notepad2e/issues/126)
- solved by commit 71838d6
This commit is contained in:
parent
4bc42b7840
commit
3e23113b7f
11
src/Edit.c
11
src/Edit.c
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user