2
0
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:
Asmodai 2018-05-10 18:39:45 +03:00
parent 6456c5f7ec
commit 93b5bd45e2

View File

@ -316,6 +316,8 @@ void CForwardCallbackJIT::call_func(Reg32 addr)
}
else
push(esp);
push(size_t("%s"));
}
// push normal args
@ -327,7 +329,7 @@ void CForwardCallbackJIT::call_func(Reg32 addr)
// pop stack
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, ...)