user32/tests: Do not depend on argument evaluation order.

Thomas Faber thfabba at
Wed Feb 22 10:56:13 CST 2012

This moves PeekMessage calls outside the ok() in msg.c.
A call like

ok( !PeekMessageW( &msg, hwnd, 0, 0, PM_REMOVE ), "got message %x\n", msg.message );

might (and usually does, on x86) evaluate the third argument msg.message
before calling PeekMessage, thus producing unexpected output should the
test fail.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0002-user32-tests-do-not-depend-on-argument-evaluation-or.patch
URL: <>

More information about the wine-patches mailing list