mirror of
https://github.com/dashr9230/SA-MP.git
synced 2024-12-22 14:37:29 +08:00
[saco] Implement/match SetForegroundWindowCrashFixHook()
This commit is contained in:
parent
73482c3d27
commit
963daecaf8
@ -524,6 +524,23 @@ exitFn:
|
||||
}
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------
|
||||
|
||||
NUDE SetForegroundWindowCrashFixHook()
|
||||
{
|
||||
__asm
|
||||
{
|
||||
mov eax, ds:0xC17054;
|
||||
test eax, eax;
|
||||
jz exitFn;
|
||||
push 0x746929; // return address;
|
||||
ret;
|
||||
exitFn:
|
||||
xor eax, eax;
|
||||
ret;
|
||||
}
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------
|
||||
// used for correct report message using 100A1790 ; void __thiscall CGame::PlayCrimeReport
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user