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:
parent
32349fd6a4
commit
8316f89eb4
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user