mirror of
https://github.com/rehlds/metamod-r.git
synced 2025-03-03 17:15:26 +03:00
Fix crashes in pfnAlertMessage
This commit is contained in:
parent
6456c5f7ec
commit
93b5bd45e2
@ -316,6 +316,8 @@ void CForwardCallbackJIT::call_func(Reg32 addr)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
push(esp);
|
push(esp);
|
||||||
|
|
||||||
|
push(size_t("%s"));
|
||||||
}
|
}
|
||||||
|
|
||||||
// push normal args
|
// push normal args
|
||||||
@ -327,7 +329,7 @@ void CForwardCallbackJIT::call_func(Reg32 addr)
|
|||||||
|
|
||||||
// pop stack
|
// pop stack
|
||||||
if (m_jitdata->args_count)
|
if (m_jitdata->args_count)
|
||||||
add(esp, m_jitdata->args_count * sizeof(int));
|
add(esp, (m_jitdata->args_count + (m_jitdata->has_varargs ? 1u : 0u)) * sizeof(int));
|
||||||
}
|
}
|
||||||
|
|
||||||
void CForwardCallbackJIT::jit_debug(const char* format, ...)
|
void CForwardCallbackJIT::jit_debug(const char* format, ...)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user