https://git.reactos.org/?p=reactos.git;a=commitdiff;h=97025c3e06cf7e1c2c76875ab3f439cc305f5b40

commit 97025c3e06cf7e1c2c76875ab3f439cc305f5b40
Author:     Benedikt Freisen <[email protected]>
AuthorDate: Sat May 26 12:36:47 2018 +0200
Commit:     Benedikt Freisen <[email protected]>
CommitDate: Sat May 26 14:16:17 2018 +0200

    [MSPAINT] Store subsequent changes to file selected via Save As
    
    Paint has erroneously been storing subsequent changes to Unnamed.bmp
    
    CORE-13291
---
 base/applications/mspaint/winproc.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/base/applications/mspaint/winproc.cpp 
b/base/applications/mspaint/winproc.cpp
index 76d7e4e67f..51ba366fe0 100644
--- a/base/applications/mspaint/winproc.cpp
+++ b/base/applications/mspaint/winproc.cpp
@@ -94,6 +94,7 @@ void CMainWindow::saveImage(BOOL overwrite)
     else if (GetSaveFileName(&sfn) != 0)
     {
         imageModel.SaveImage(sfn.lpstrFile);
+        _tcsncpy(filepathname, sfn.lpstrFile, SIZEOF(filepathname));
         CString strTitle;
         strTitle.Format(IDS_WINDOWTITLE, (LPCTSTR)sfn.lpstrFileTitle);
         SetWindowText(strTitle);

Reply via email to