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

add NULL check

This commit is contained in:
FunkyFr3sh 2023-02-27 18:30:35 +01:00
parent 336eb1bdba
commit 67188ea500

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 && g_ddraw->hook_peekmessage)
if (result && g_ddraw && g_ddraw->hook_peekmessage)
{
switch (lpMsg->message)
{