mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-11-15 10:20:07 +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:
1 file changed
+1
-4
@@ -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