[NOTEPAD]
authorThomas Faber <thomas.faber@reactos.org>
Sun, 20 Nov 2016 09:16:19 +0000 (09:16 +0000)
committerThomas Faber <thomas.faber@reactos.org>
Sun, 20 Nov 2016 09:16:19 +0000 (09:16 +0000)
- Update the window title on Save. Based on a patch by Thomas Csovcsity.
CORE-12423 #resolve

svn path=/trunk/; revision=73322

reactos/base/applications/notepad/dialog.c

index afc96ab..91a3ec2 100644 (file)
@@ -438,9 +438,15 @@ VOID DIALOG_FileOpen(VOID)
 BOOL DIALOG_FileSave(VOID)
 {
     if (Globals.szFileName[0] == 0)
+    {
         return DIALOG_FileSaveAs();
-    else
-        return DoSaveFile();
+    }
+    else if (DoSaveFile())
+    {
+        UpdateWindowCaption(TRUE);
+        return TRUE;
+    }
+    return FALSE;
 }
 
 static UINT_PTR