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:
parent
336eb1bdba
commit
67188ea500
@ -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)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user