[MSPAINT] Store subsequent changes to file selected via Save As

Paint has erroneously been storing subsequent changes to Unnamed.bmp

CORE-13291
This commit is contained in:
Benedikt Freisen 2018-05-26 12:36:47 +02:00
parent de58c459fa
commit 97025c3e06

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