Fetch ordinal names if we emergency-fetch module in GetProcAddress

This commit is contained in:
baldurk
2018-05-23 16:00:42 +01:00
parent 851a88133a
commit 6e3a173c7f
+4
View File
@@ -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);