Skip to content

Commit 4968763

Browse files
roybaerJoachimHenze
authored andcommitted
[0.4.9] cherry-pick [MSPAINT] Store subsequent changes to file selected via Save As
Paint has erroneously been storing subsequent changes to Unnamed.bmp CORE-13291 (cherry picked from commit 97025c3)
1 parent d33b71e commit 4968763

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

base/applications/mspaint/winproc.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ void CMainWindow::saveImage(BOOL overwrite)
9494
else if (GetSaveFileName(&sfn) != 0)
9595
{
9696
imageModel.SaveImage(sfn.lpstrFile);
97+
_tcsncpy(filepathname, sfn.lpstrFile, SIZEOF(filepathname));
9798
CString strTitle;
9899
strTitle.Format(IDS_WINDOWTITLE, (LPCTSTR)sfn.lpstrFileTitle);
99100
SetWindowText(strTitle);

0 commit comments

Comments
 (0)