add NULL check
This commit is contained in:
parent
32349fd6a4
commit
8316f89eb4
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue