mirror of
https://github.com/alliedmodders/sourcemod.git
synced 2025-12-07 18:38:37 +00:00
fix issue with the trampoline
This commit is contained in:
parent
8371eb805c
commit
88ae9d6e26
@ -232,7 +232,8 @@ void* CHook::CreateBridge()
|
||||
masm.j(equal, &label_supercede);
|
||||
|
||||
// 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
|
||||
masm.bind(&label_supercede);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user