1
0
mirror of https://github.com/FunkyFr3sh/cnc-ddraw.git synced 2025-03-24 17:49:52 +01:00

add NULL check

This commit is contained in:
FunkyFr3sh 2024-06-11 03:00:50 +02:00
parent 32349fd6a4
commit 8316f89eb4

View File

@ -34,7 +34,7 @@ static LPDIRECTINPUTDEVICEA g_mouse_device;
static PROC hook_func(PROC* org_func, PROC new_func) static PROC hook_func(PROC* org_func, PROC new_func)
{ {
if (!org_func) if (!org_func || !new_func)
return 0; return 0;
PROC org = *org_func; PROC org = *org_func;