Dmitry Timoshkov : user32/tests: Mask a not documented extended style 0x800 in WINDOWINFO before the comparison .

Alexandre Julliard julliard at wine.codeweavers.com
Thu Nov 2 05:46:48 CST 2006


Module: wine
Branch: master
Commit: 86c28920c3d9915c5a846860926dab7ef8b1d628
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=86c28920c3d9915c5a846860926dab7ef8b1d628

Author: Dmitry Timoshkov <dmitry at codeweavers.com>
Date:   Thu Nov  2 15:17:15 2006 +0800

user32/tests: Mask a not documented extended style 0x800 in WINDOWINFO before the comparison.

---

 dlls/user/tests/win.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/dlls/user/tests/win.c b/dlls/user/tests/win.c
index 6821832..922d9a4 100644
--- a/dlls/user/tests/win.c
+++ b/dlls/user/tests/win.c
@@ -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-cvs mailing list