diff --git a/base/applications/notepad/dialog.c b/base/applications/notepad/dialog.c index 17939fbd16d..6f61df4b899 100644 --- a/base/applications/notepad/dialog.c +++ b/base/applications/notepad/dialog.c @@ -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);