From 97025c3e06cf7e1c2c76875ab3f439cc305f5b40 Mon Sep 17 00:00:00 2001 From: Benedikt Freisen Date: Sat, 26 May 2018 12:36:47 +0200 Subject: [PATCH] [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 76d7e4e67fa..51ba366fe08 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);