mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-10-13 23:59:10 +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:
1 parent
6e7f2dadce
commit
cf5059706e
1 file changed
+1
-1
@@ -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