It works ;p
This commit is contained in:
parent
ceb4462e35
commit
a61bd93a9d
1 changed files with 6 additions and 5 deletions
|
@ -31,10 +31,6 @@ __declspec(naked) void TrampolineLogMessageWrapperHook()
|
|||
{
|
||||
__asm
|
||||
{
|
||||
// Overwrited instructions by the patch
|
||||
PUSH esi
|
||||
PUSH [esp+0xC] // push [esp + 4 + messageLength]
|
||||
|
||||
// Save registers
|
||||
PUSHAD
|
||||
|
||||
|
@ -44,7 +40,12 @@ __declspec(naked) void TrampolineLogMessageWrapperHook()
|
|||
// Restore registers
|
||||
POPAD
|
||||
|
||||
// Not really sure...
|
||||
// Overwrited instructions by the patch
|
||||
PUSH esi
|
||||
PUSH[esp + 0xC] // push [esp + 4 + messageLength]
|
||||
|
||||
// Jump back to the function...
|
||||
PUSH 0x403b75
|
||||
RET
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue