It works ;p

This commit is contained in:
Quentin 2017-10-19 20:16:46 +02:00
parent ceb4462e35
commit a61bd93a9d

View file

@ -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
}
}