Mask a not documented extended style 0x800 in WINDOWINFO before the
comparison
Dmitry Timoshkov
dmitry at codeweavers.com
Thu Nov 2 01:17:15 CST 2006
Hello,
Changelog:
Mask a not documented extended style 0x800 in WINDOWINFO before
the comparison with the value returned by GetWindowLong(GWL_EXSTYLE)
in order to reduce the number of test failures under XP.
--- cvs/hq/wine/dlls/user/tests/win.c Thu Nov 02 07:06:10 2006
+++ wine/dlls/user/tests/win.c Thu Nov 02 07:13:04 2006
@@ -724,7 +724,10 @@ static void verify_window_info(HWND hwnd
ok(info->dwStyle == (DWORD)GetWindowLongA(hwnd, GWL_STYLE),
"wrong dwStyle: %08x != %08x\n", info->dwStyle, GetWindowLongA(hwnd, GWL_STYLE));
- ok(info->dwExStyle == (DWORD)GetWindowLongA(hwnd, GWL_EXSTYLE),
+ /* Windows reports a not documented exstyle 0x800 in WINDOWINFO, but
+ * doesn't return it in GetWindowLong(hwnd, GWL_EXSTYLE).
+ */
+ ok((info->dwExStyle & ~0x800) == (DWORD)GetWindowLongA(hwnd, GWL_EXSTYLE),
"wrong dwExStyle: %08x != %08x\n", info->dwExStyle, GetWindowLongA(hwnd, GWL_EXSTYLE));
status = (GetActiveWindow() == hwnd) ? WS_ACTIVECAPTION : 0;
ok(info->dwWindowStatus == status, "wrong dwWindowStatus: %04x != %04x\n",
More information about the wine-patches
mailing list