fix hook_exit
This commit is contained in:
parent
e575b07d2e
commit
59f8da56da
1 changed files with 7 additions and 7 deletions
|
@ -559,7 +559,6 @@ void hook_exit()
|
||||||
g_hook_active = FALSE;
|
g_hook_active = FALSE;
|
||||||
|
|
||||||
hook_revert((HOOKLIST*)&g_hooks);
|
hook_revert((HOOKLIST*)&g_hooks);
|
||||||
}
|
|
||||||
|
|
||||||
#if defined(_DEBUG) && defined(_MSC_VER)
|
#if defined(_DEBUG) && defined(_MSC_VER)
|
||||||
DetourTransactionBegin();
|
DetourTransactionBegin();
|
||||||
|
@ -571,4 +570,5 @@ void hook_exit()
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
hook_patch_iat(GetModuleHandle("AcGenral"), TRUE, "user32.dll", "SetWindowsHookExA", (PROC)fake_SetWindowsHookExA);
|
hook_patch_iat(GetModuleHandle("AcGenral"), TRUE, "user32.dll", "SetWindowsHookExA", (PROC)fake_SetWindowsHookExA);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue