mirror of
https://github.com/reactos/reactos.git
synced 2025-07-30 19:11:51 +00:00
[MSPAINT] Follow-up of #2686
Show error message if SaveDIBToFile failed. CORE-16982, CORE-16979
This commit is contained in:
parent
f3235f1074
commit
7fe7f5e4c1
1 changed files with 4 additions and 0 deletions
|
@ -75,7 +75,10 @@ BOOL SaveDIBToFile(HBITMAP hBitmap, LPTSTR FileName, HDC hDC)
|
||||||
WIN32_FIND_DATA find;
|
WIN32_FIND_DATA find;
|
||||||
HANDLE hFind = FindFirstFile(FileName, &find);
|
HANDLE hFind = FindFirstFile(FileName, &find);
|
||||||
if (hFind == INVALID_HANDLE_VALUE)
|
if (hFind == INVALID_HANDLE_VALUE)
|
||||||
|
{
|
||||||
|
ShowFileLoadError(FileName);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
}
|
||||||
FindClose(hFind);
|
FindClose(hFind);
|
||||||
|
|
||||||
// update time and size
|
// update time and size
|
||||||
|
@ -114,6 +117,7 @@ HBITMAP SetBitmapAndInfo(HBITMAP hBitmap, LPCTSTR name, DWORD dwFileSize, BOOL i
|
||||||
|
|
||||||
fileHPPM = fileVPPM = 2834;
|
fileHPPM = fileVPPM = 2834;
|
||||||
ZeroMemory(&fileTime, sizeof(fileTime));
|
ZeroMemory(&fileTime, sizeof(fileTime));
|
||||||
|
isFile = FALSE;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue