Fixed stack offset in relay debugging of cdecl register functions.

This commit is contained in:
Alexandre Julliard 2001-12-19 19:17:09 +00:00
parent b0f586178a
commit 6a9325d054
1 changed files with 2 additions and 1 deletions

View File

@ -336,7 +336,8 @@ void WINAPI RELAY_DoCallFrom32Regs( CONTEXT86 *context )
/* remove extra stuff from the stack */
context->Eip = stack32_pop(context);
args = (int *)context->Esp;
context->Esp += 4 * nb_args;
if (relay->ret == 0xc2) /* stdcall */
context->Esp += nb_args * sizeof(int);
assert(TRACE_ON(relay));