user32/tests: Fix a test failure on Win8/Win10.

This commit is contained in:
Nikolay Sivov 2015-08-22 12:19:56 +03:00 committed by Alexandre Julliard
parent f01bab5be1
commit 873e12c87b
1 changed files with 4 additions and 2 deletions

View File

@ -6436,10 +6436,12 @@ static void test_layered_window(void)
ret = pUpdateLayeredWindowIndirect( hwnd, &info );
ok( ret, "UpdateLayeredWindowIndirect should succeed on layered window\n" );
sz.cx--;
SetLastError(0);
ret = pUpdateLayeredWindowIndirect( hwnd, &info );
ok( !ret, "UpdateLayeredWindowIndirect should fail\n" );
ok( GetLastError() == ERROR_INCORRECT_SIZE || broken(GetLastError() == ERROR_MR_MID_NOT_FOUND),
"wrong error %u\n", GetLastError() );
/* particular error code differs from version to version, could be ERROR_INCORRECT_SIZE,
ERROR_MR_MID_NOT_FOUND or ERROR_GEN_FAILURE (Win8/Win10) */
ok( GetLastError() != 0, "wrong error %u\n", GetLastError() );
info.dwFlags = ULW_OPAQUE;
ret = pUpdateLayeredWindowIndirect( hwnd, &info );
ok( ret, "UpdateLayeredWindowIndirect should succeed on layered window\n" );