mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-09-23 22:25:55 +00:00
Defer to real GetProcAddress for NULL parameters. Closes #1476
* Returning NULL as the result is not necessarily correct - a NULL module is an alias for the executable itself.
This commit is contained in:
@@ -703,10 +703,7 @@ static bool OrdinalAsString(void *func)
|
||||
|
||||
FARPROC WINAPI Hooked_GetProcAddress(HMODULE mod, LPCSTR func)
|
||||
{
|
||||
if(mod == NULL || func == NULL)
|
||||
return (FARPROC)NULL;
|
||||
|
||||
if(mod == s_HookData->ownmodule)
|
||||
if(mod == NULL || func == NULL || mod == s_HookData->ownmodule)
|
||||
return GetProcAddress(mod, func);
|
||||
|
||||
#if ENABLED(VERBOSE_DEBUG_HOOK)
|
||||
|
||||
Reference in New Issue
Block a user