fix issue with the trampoline

This commit is contained in:
Kenzzer 2024-09-11 23:29:22 +02:00
parent 8371eb805c
commit 88ae9d6e26
No known key found for this signature in database
GPG Key ID: A4474D96720FD722

View File

@ -232,7 +232,8 @@ void* CHook::CreateBridge()
masm.j(equal, &label_supercede); masm.j(equal, &label_supercede);
// Jump to the trampoline // Jump to the trampoline
masm.jmp(ExternalAddress(m_pTrampoline)); masm.movl(eax, Operand(ExternalAddress(&m_pTrampoline)));
masm.jmp(eax);
// This code will be executed if a pre-hook returns ReturnAction_Supercede // This code will be executed if a pre-hook returns ReturnAction_Supercede
masm.bind(&label_supercede); masm.bind(&label_supercede);