mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-07-08 08:40:55 +00:00
Fix a crash if calling GetProcAddress for GetProcAddress (what?!)
* Would also happen for LoadLibrary variants, but the crashdump I got was for GetProcAddress.
This commit is contained in:
@@ -493,7 +493,7 @@ FARPROC WINAPI Hooked_GetProcAddress(HMODULE mod, LPCSTR func)
|
||||
if(found->origptr && *found->origptr == NULL)
|
||||
*found->origptr = (void *)GetProcAddress(mod, func);
|
||||
|
||||
if(*found->origptr == NULL)
|
||||
if(found->origptr && *found->origptr == NULL)
|
||||
return NULL;
|
||||
|
||||
return (FARPROC)found->hookptr;
|
||||
|
||||
Reference in New Issue
Block a user