mirror of
https://github.com/reactos/reactos.git
synced 2025-02-20 15:35:04 +00: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:
parent
de58c459fa
commit
97025c3e06
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue