Fixed calling thiscall functions with 0 parameters

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40748
This commit is contained in:
Scott Ehlert 2007-05-06 05:28:45 +00:00
parent a994857444
commit 8137f2d29d

View File

@ -509,7 +509,7 @@ void JIT_Compile(CallWrapper *pWrapper, FuncAddrMethod method)
jit_rewind:
/* Write function prologue */
Write_Execution_Prologue(jit, (pRet) ? false : true, (ParamCount) ? true : false);
Write_Execution_Prologue(jit, (pRet) ? false : true, (ParamCount || Convention == CallConv_ThisCall));
/* Write parameter push code */
for (jit_int32_t i=ParamCount-1; i>=0; i--)