https://git.reactos.org/?p=reactos.git;a=commitdiff;h=7fe7f5e4c107451c4485c…
commit 7fe7f5e4c107451c4485cc53f140ba5e93612b63
Author: Katayama Hirofumi MZ <katayama.hirofumi.mz(a)gmail.com>
AuthorDate: Wed Apr 29 08:39:47 2020 +0900
Commit: Katayama Hirofumi MZ <katayama.hirofumi.mz(a)gmail.com>
CommitDate: Wed Apr 29 08:39:47 2020 +0900
[MSPAINT] Follow-up of #2686
Show error message if SaveDIBToFile failed.
CORE-16982, CORE-16979
---
base/applications/mspaint/dib.cpp | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/base/applications/mspaint/dib.cpp b/base/applications/mspaint/dib.cpp
index 58c4c83e82f..ecdbf22e339 100644
--- a/base/applications/mspaint/dib.cpp
+++ b/base/applications/mspaint/dib.cpp
@@ -75,7 +75,10 @@ BOOL SaveDIBToFile(HBITMAP hBitmap, LPTSTR FileName, HDC hDC)
WIN32_FIND_DATA find;
HANDLE hFind = FindFirstFile(FileName, &find);
if (hFind == INVALID_HANDLE_VALUE)
+ {
+ ShowFileLoadError(FileName);
return FALSE;
+ }
FindClose(hFind);
// update time and size
@@ -114,6 +117,7 @@ HBITMAP SetBitmapAndInfo(HBITMAP hBitmap, LPCTSTR name, DWORD
dwFileSize, BOOL i
fileHPPM = fileVPPM = 2834;
ZeroMemory(&fileTime, sizeof(fileTime));
+ isFile = FALSE;
}
else
{