mirror of
https://github.com/dashr9230/SA-MP.git
synced 2025-01-04 00:23:22 +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
|
// used for correct report message using 100A1790 ; void __thiscall CGame::PlayCrimeReport
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user