mirror of
https://gitlab.com/Mr_Goldberg/goldberg_emulator.git
synced 2025-12-05 11:44:53 +01:00
Fixed dual hook on last function call
This commit is contained in:
parent
890f19c20a
commit
dda1e3210c
2 changed files with 9 additions and 4 deletions
|
|
@ -34,7 +34,7 @@ void Base_Hook::UnhookAll()
|
|||
}
|
||||
}
|
||||
|
||||
void Base_Hook::HookFuncs(std::pair<void**, void*> hook)
|
||||
void Base_Hook::HookFunc(std::pair<void**, void*> hook)
|
||||
{
|
||||
if( DetourAttach(hook.first, hook.second) == 0 )
|
||||
_hooked_funcs.emplace_back(hook);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue