We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
GetProcAddress
1 parent 0ea89aa commit 058d466Copy full SHA for 058d466
sa-mp_masterlist_fix/Fix.cpp
@@ -11,10 +11,14 @@ FARPROC WINAPI Fix::GetProcAddress(HMODULE hModule, LPCSTR lpProcName)
11
return ::GetProcAddress(hModule, lpProcName);
12
}
13
14
- auto it = self.m_hooks.find(lpProcName);
15
- if (it != self.m_hooks.end())
+ // Make sure we are dealing with a string, not a DLL ordinal
+ if (HIWORD(lpProcName))
16
{
17
- return it->second;
+ auto it = self.m_hooks.find(lpProcName);
18
+ if (it != self.m_hooks.end())
19
+ {
20
+ return it->second;
21
+ }
22
23
24
urmem::hook::raii raii(self.m_procGetterHook);
0 commit comments