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
32349fd6a4
commit
8316f89eb4
@ -34,7 +34,7 @@ static LPDIRECTINPUTDEVICEA g_mouse_device;
|
||||
|
||||
static PROC hook_func(PROC* org_func, PROC new_func)
|
||||
{
|
||||
if (!org_func)
|
||||
if (!org_func || !new_func)
|
||||
return 0;
|
||||
|
||||
PROC org = *org_func;
|
||||
|
Loading…
x
Reference in New Issue
Block a user