[saco] DllMain jump?

This commit is contained in:
RD42
2024-03-14 23:56:03 +08:00
parent e8c56e3085
commit 3687b95a9d

View File

@ -77,7 +77,7 @@ void LaunchMonitor(PVOID v)
#define ARCHIVE_FILE "samp.saa"
BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
BOOL WINAPI DllMain_2(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
{
if(DLL_PROCESS_ATTACH==fdwReason)
{
@ -122,6 +122,13 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
//----------------------------------------------------
BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
{
_asm jmp DllMain_2
}
//----------------------------------------------------
PCHAR GetSAMPPath()
{
return szSAMPDir;