mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 01:50:38 +00:00
Fetch ordinal names if we emergency-fetch module in GetProcAddress
This commit is contained in:
@@ -663,7 +663,11 @@ FARPROC WINAPI Hooked_GetProcAddress(HMODULE mod, LPCSTR func)
|
||||
for(auto it = s_HookData->DllHooks.begin(); it != s_HookData->DllHooks.end(); ++it)
|
||||
{
|
||||
if(it->second.module == NULL)
|
||||
{
|
||||
it->second.module = GetModuleHandleA(it->first.c_str());
|
||||
if(it->second.module)
|
||||
it->second.FetchOrdinalNames();
|
||||
}
|
||||
|
||||
bool match = (mod == it->second.module);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user