From 3b2e92ed9dadd42303f77551247fecb431c1bff9 Mon Sep 17 00:00:00 2001 From: NishiOwO Date: Thu, 16 Oct 2025 11:05:11 +0000 Subject: [PATCH] better git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@365 b9cfdab3-6d41-4d17-bbe4-086880011989 --- src/backend/gdi.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/backend/gdi.c b/src/backend/gdi.c index 3141a75..9cd1147 100644 --- a/src/backend/gdi.c +++ b/src/backend/gdi.c @@ -311,7 +311,7 @@ int MwLLPending(MwLL handle) { (void)handle; - return PeekMessage(&msg, NULL, 0, 0, PM_NOREMOVE) ? 1 : 0; + return PeekMessage(&msg, handle->hWnd, 0, 0, PM_NOREMOVE) ? 1 : 0; } void MwLLNextEvent(MwLL handle) { @@ -319,8 +319,8 @@ void MwLLNextEvent(MwLL handle) { (void)handle; - while(PeekMessage(&msg, NULL, 0, 0, PM_NOREMOVE)) { - GetMessage(&msg, NULL, 0, 0); + while(PeekMessage(&msg, handle->hWnd, 0, 0, PM_NOREMOVE)) { + GetMessage(&msg, handle->hWnd, 0, 0); TranslateMessage(&msg); DispatchMessage(&msg); }