[MSPAINT] Fix ImageModel::PushImageForUndo bug

CORE-19274
This commit is contained in:
Katayama Hirofumi MZ 2023-10-30 07:41:57 +09:00
parent bdae8cf966
commit aed376e00f

View file

@ -119,7 +119,7 @@ void ImageModel::ClearHistory()
void ImageModel::PushImageForUndo()
{
HBITMAP hbm = CopyBitmap();
if (hbm)
if (hbm == NULL)
{
ShowOutOfMemory();
return;