mirror of
https://github.com/reactos/reactos.git
synced 2026-06-01 17:00:51 +08:00
[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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user