1
0
mirror of https://github.com/FunkyFr3sh/cnc-ddraw.git synced 2025-03-15 14:14:47 +01:00

add missing check

This commit is contained in:
FunkyFr3sh 2023-02-27 18:27:30 +01:00
parent 86e3de4ad6
commit 336eb1bdba

View File

@ -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)
{