user32: Add a test for PeekMessage((HWND)-1), make it pass under Wine.

Dmitry Timoshkov dmitry at codeweavers.com
Sat Jun 13 06:54:01 CDT 2009


"Paul Vriens" <paul.vriens.wine at gmail.com> wrote:

>> Perhaps PeekMessage() sets a reasonable last error code in that case
>> which you can test for, and 'continue;'.
>> 
> Well actually, I've improved/corrected the ok() messages and it shows:
> 
> msg.c:11637: Test failed: 0: got ret 1 hwnd 00000224 msg 0171 wParam 
> 00001234 lParam 00005678 instead of TRUE/00000224/WM_USER+1/0x1234/0x5678
> msg.c:11628: Test failed: 2: hwnd 00000001 expected 1, got 0
> msg.c:11632: Test failed: 2: got ret 0 hwnd ABABABAB msg abababab wParam 
> abababab lParam abababab instead of TRUE/0/WM_USER+2/0x5678/0x1234
> 
> So it's HWND_TOP that has the wrong message 0171 vs. WM_USER+1
> and
> HWND_BOTTOM is the one that fails.

Looks like win9x behaviour in this test is completely broken, it's better
IMO to detect win9x and skip the test.

-- 
Dmitry.



More information about the wine-devel mailing list