use real functions

This commit is contained in:
FunkyFr3sh 2023-08-06 09:25:34 +02:00
parent 1d646e0f4f
commit a28578f925
9 changed files with 62 additions and 54 deletions

View file

@ -202,7 +202,7 @@ void hook_patch_obfuscated_iat_list(HMODULE hmod, BOOL unhook, HOOKLIST* hooks)
for (int x = 0; hooks[i].data[x].function_name[0]; x++)
{
DWORD org_function =
(DWORD)GetProcAddress(
(DWORD)real_GetProcAddress(
cur_mod,
hooks[i].data[x].function_name);
@ -327,7 +327,7 @@ void hook_patch_iat_list(HMODULE hmod, BOOL unhook, HOOKLIST* hooks)
if (unhook)
{
DWORD org =
(DWORD)GetProcAddress(
(DWORD)real_GetProcAddress(
GetModuleHandle(hooks[i].module_name),
hooks[i].data[x].function_name);