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

Thomas Faber thfabba at gmx.de
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: <http://www.winehq.org/pipermail/wine-patches/attachments/20120222/9c663a9c/attachment-0001.ksh>


More information about the wine-patches mailing list