https://git.reactos.org/?p=reactos.git;a=commitdiff;h=aed376e00f65c496524f2…
commit aed376e00f65c496524f2e413ba2f1182b730361
Author: Katayama Hirofumi MZ <katayama.hirofumi.mz(a)gmail.com>
AuthorDate: Mon Oct 30 07:41:57 2023 +0900
Commit: Katayama Hirofumi MZ <katayama.hirofumi.mz(a)gmail.com>
CommitDate: Mon Oct 30 07:41:57 2023 +0900
[MSPAINT] Fix ImageModel::PushImageForUndo bug
CORE-19274
---
base/applications/mspaint/history.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/base/applications/mspaint/history.cpp
b/base/applications/mspaint/history.cpp
index 003d0ab5877..283b5f0c083 100644
--- a/base/applications/mspaint/history.cpp
+++ b/base/applications/mspaint/history.cpp
@@ -119,7 +119,7 @@ void ImageModel::ClearHistory()
void ImageModel::PushImageForUndo()
{
HBITMAP hbm = CopyBitmap();
- if (hbm)
+ if (hbm == NULL)
{
ShowOutOfMemory();
return;