diff --git a/renderdoc/os/win32/win32_hook.cpp b/renderdoc/os/win32/win32_hook.cpp index 5337627e4..dd6a707d1 100644 --- a/renderdoc/os/win32/win32_hook.cpp +++ b/renderdoc/os/win32/win32_hook.cpp @@ -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);