user32/tests: Fix incorrect usage of broken() function.
Signed-off-by: Andrey Gusev <andrey.goosev@gmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
5003f15289
commit
f669dc69cd
|
@ -15554,8 +15554,8 @@ static void test_layered_window(void)
|
|||
size.cx = 0;
|
||||
ret = pUpdateLayeredWindow( hwnd, 0, &pos, &size, hdc, &src, 0, NULL, ULW_OPAQUE );
|
||||
ok( !ret, "UpdateLayeredWindow should fail on non-layered window\n" );
|
||||
ok( GetLastError() == ERROR_INVALID_PARAMETER || broken(ERROR_MR_MID_NOT_FOUND) /* win7 */,
|
||||
"wrong error %u\n", GetLastError() );
|
||||
ok( GetLastError() == ERROR_INVALID_PARAMETER || broken(GetLastError() == ERROR_MR_MID_NOT_FOUND) ||
|
||||
broken(GetLastError() == ERROR_GEN_FAILURE) /* win7 */, "wrong error %u\n", GetLastError() );
|
||||
size.cx = 1;
|
||||
size.cy = -1;
|
||||
ret = pUpdateLayeredWindow( hwnd, 0, &pos, &size, hdc, &src, 0, NULL, ULW_OPAQUE );
|
||||
|
|
Loading…
Reference in New Issue