mirror of
https://github.com/reactos/reactos.git
synced 2026-06-08 00:46:10 +08:00
[NOTEPAD] Don't leave junk behind when opening smaller file (#7227)
This commit is contained in:
@@ -343,6 +343,7 @@ VOID DoOpenFile(LPCTSTR szFileName)
|
||||
return;
|
||||
|
||||
WaitCursor(TRUE);
|
||||
SetWindowText(Globals.hEdit, NULL);
|
||||
|
||||
hFile = CreateFile(szFileName, GENERIC_READ, FILE_SHARE_READ | FILE_SHARE_WRITE, NULL,
|
||||
OPEN_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL);
|
||||
|
||||
Reference in New Issue
Block a user