Commit a2fe8ebe authored by Ulrich Weigand's avatar Ulrich Weigand Committed by Alexandre Julliard

Bugfix: [QF]T_Thunk should clear HIWORD(EAX) on return.

Bugfix: hack for stupid USER32 CallbackGlueLS routine in Common32ThkLS.
parent 077da06e
......@@ -263,6 +263,7 @@ REGS_ENTRYPOINT(QT_Thunk)
EAX_reg(context) = Callbacks->CallRegisterShortProc( &context16, argsize );
EDX_reg(context) = HIWORD(EAX_reg(context));
EAX_reg(context) = LOWORD(EAX_reg(context));
}
......@@ -392,6 +393,7 @@ REGS_ENTRYPOINT(FT_Thunk)
EAX_reg(context) = Callbacks->CallRegisterShortProc( &context16, argsize );
EDX_reg(context) = HIWORD(EAX_reg(context));
EAX_reg(context) = LOWORD(EAX_reg(context));
}
/**********************************************************************
......@@ -565,6 +567,10 @@ REGS_ENTRYPOINT(Common32ThkLS)
argsize = HIWORD(EDX_reg(context)) * 4;
/* FIXME: hack for stupid USER32 CallbackGlueLS routine */
if (EDX_reg(context) == EIP_reg(context))
argsize = 6 * 4;
memcpy( ((LPBYTE)THREAD_STACK16(thdb))-argsize,
(LPBYTE)ESP_reg(context)+4, argsize );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment