[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 97025c3e06)
This commit is contained in:
Benedikt Freisen 2018-05-26 12:36:47 +02:00 committed by Joachim Henze
parent d33b71e9d4
commit 49687637b3

View file

@ -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);