1
0
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:
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)
{
if (!org_func)
if (!org_func || !new_func)
return 0;
PROC org = *org_func;