[Scummvm-git-logs] scummvm master -> 879088b5e85da007fefde55aacc6b987eb8f9af4
dreammaster
noreply at scummvm.org
Fri Feb 20 10:02:50 UTC 2026
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://api.github.com/repos/scummvm/scummvm .
Summary:
879088b5e8 GRAPHICS: MFC: Ignore rather than assert on messages with null hWnd
Commit: 879088b5e85da007fefde55aacc6b987eb8f9af4
https://github.com/scummvm/scummvm/commit/879088b5e85da007fefde55aacc6b987eb8f9af4
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2026-02-20T21:02:04+11:00
Commit Message:
GRAPHICS: MFC: Ignore rather than assert on messages with null hWnd
This fixes a rare assert in Hodj n Podj boardgame where a
message could be sent to a freed null hWnd.
Changed paths:
graphics/mfc/libs/event_loop.cpp
diff --git a/graphics/mfc/libs/event_loop.cpp b/graphics/mfc/libs/event_loop.cpp
index 4f69cfa29d4..53dc822fd5c 100644
--- a/graphics/mfc/libs/event_loop.cpp
+++ b/graphics/mfc/libs/event_loop.cpp
@@ -355,8 +355,9 @@ bool EventLoop::PostMessage(HWND hWnd, unsigned int Msg,
// so we can ignore the WM_PARENTNOTIFY on closure
return false;
- assert(hWnd);
- _messages.push(MSG(hWnd, Msg, wParam, lParam));
+ if (hWnd)
+ _messages.push(MSG(hWnd, Msg, wParam, lParam));
+
return true;
}
More information about the Scummvm-git-logs
mailing list