From 336eb1bdba9ab20afcae8be862e0d0cc2268f8ad Mon Sep 17 00:00:00 2001 From: FunkyFr3sh Date: Mon, 27 Feb 2023 18:27:30 +0100 Subject: [PATCH] add missing check --- src/winapi_hooks.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/winapi_hooks.c b/src/winapi_hooks.c index daa9ebb..e5b10ad 100644 --- a/src/winapi_hooks.c +++ b/src/winapi_hooks.c @@ -557,7 +557,7 @@ BOOL WINAPI fake_PeekMessageA(LPMSG lpMsg, HWND hWnd, UINT wMsgFilterMin, UINT w { BOOL result = real_PeekMessageA(lpMsg, hWnd, wMsgFilterMin, wMsgFilterMax, wRemoveMsg); - if (result) + if (result && g_ddraw->hook_peekmessage) { switch (lpMsg->message) {