user32/tests: Fix a window style check on Vista.
This commit is contained in:
parent
5b0c326679
commit
d93fa6a1e7
|
@ -730,10 +730,10 @@ static void verify_window_info(HWND hwnd, const WINDOWINFO *info)
|
||||||
|
|
||||||
ok(info->dwStyle == (DWORD)GetWindowLongA(hwnd, GWL_STYLE),
|
ok(info->dwStyle == (DWORD)GetWindowLongA(hwnd, GWL_STYLE),
|
||||||
"wrong dwStyle: %08x != %08x\n", info->dwStyle, GetWindowLongA(hwnd, GWL_STYLE));
|
"wrong dwStyle: %08x != %08x\n", info->dwStyle, GetWindowLongA(hwnd, GWL_STYLE));
|
||||||
/* Windows reports a not documented exstyle 0x800 in WINDOWINFO, but
|
/* Windows reports some undocumented exstyles in WINDOWINFO, but
|
||||||
* doesn't return it in GetWindowLong(hwnd, GWL_EXSTYLE).
|
* doesn't return them in GetWindowLong(hwnd, GWL_EXSTYLE).
|
||||||
*/
|
*/
|
||||||
ok((info->dwExStyle & ~0x800) == (DWORD)GetWindowLongA(hwnd, GWL_EXSTYLE),
|
ok((info->dwExStyle & ~0xe0000800) == (DWORD)GetWindowLongA(hwnd, GWL_EXSTYLE),
|
||||||
"wrong dwExStyle: %08x != %08x\n", info->dwExStyle, GetWindowLongA(hwnd, GWL_EXSTYLE));
|
"wrong dwExStyle: %08x != %08x\n", info->dwExStyle, GetWindowLongA(hwnd, GWL_EXSTYLE));
|
||||||
status = (GetActiveWindow() == hwnd) ? WS_ACTIVECAPTION : 0;
|
status = (GetActiveWindow() == hwnd) ? WS_ACTIVECAPTION : 0;
|
||||||
ok(info->dwWindowStatus == status, "wrong dwWindowStatus: %04x != %04x\n",
|
ok(info->dwWindowStatus == status, "wrong dwWindowStatus: %04x != %04x\n",
|
||||||
|
|
Loading…
Reference in New Issue