mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 10:00:40 +00:00
If GetProcAddress for the real function returns NULL, don't hook func
This commit is contained in:
@@ -493,6 +493,9 @@ FARPROC WINAPI Hooked_GetProcAddress(HMODULE mod, LPCSTR func)
|
||||
if(found->origptr && *found->origptr == NULL)
|
||||
*found->origptr = (void *)GetProcAddress(mod, func);
|
||||
|
||||
if(*found->origptr == NULL)
|
||||
return NULL;
|
||||
|
||||
return (FARPROC)found->hookptr;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user