mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 09:34:43 +00:00
[NOTEPAD] Don't leave junk behind when opening smaller file (#7227)
This commit is contained in:
parent
81ec056963
commit
e546525eac
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue