Fix VERBOSE_DEBUG_HOOK to compile properly when enabled

This commit is contained in:
baldurk
2018-11-28 15:23:29 +00:00
parent cc4a48b6d6
commit 57f4e4bf16
+2 -2
View File
@@ -57,7 +57,7 @@ bool ApplyHook(FunctionHook &hook, void **IATentry, bool &already)
}
#if ENABLED(VERBOSE_DEBUG_HOOK)
RDCDEBUG("Patching IAT for %s: %p to %p", function.c_str(), IATentry, hookptr);
RDCDEBUG("Patching IAT for %s: %p to %p", hook.function.c_str(), IATentry, hook.hook);
#endif
{
@@ -797,7 +797,7 @@ FARPROC WINAPI Hooked_GetProcAddress(HMODULE mod, LPCSTR func)
FARPROC realfunc = GetProcAddress(mod, func);
#if ENABLED(VERBOSE_DEBUG_HOOK)
RDCDEBUG("Found hooked function, returning hook pointer %p", found->hookptr);
RDCDEBUG("Found hooked function, returning hook pointer %p", found->hook);
#endif
SetLastError(S_OK);