user32/tests: FlashWindow(Ex) sets ERROR_INVALID_WINDOW_HANDLE on updated Windows 7.

Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Huw Davies 2016-11-30 12:46:59 +00:00 committed by Alexandre Julliard
parent 0d9f044dcd
commit fab7a584c1
1 changed files with 8 additions and 4 deletions

View File

@ -7825,14 +7825,16 @@ static void test_FlashWindow(void)
SetLastError( 0xdeadbeef );
ret = pFlashWindow( NULL, TRUE );
ok( !ret && GetLastError() == ERROR_INVALID_PARAMETER,
ok( !ret && (GetLastError() == ERROR_INVALID_PARAMETER ||
GetLastError() == ERROR_INVALID_WINDOW_HANDLE),
"FlashWindow returned with %d\n", GetLastError() );
DestroyWindow( hwnd );
SetLastError( 0xdeadbeef );
ret = pFlashWindow( hwnd, TRUE );
ok( !ret && GetLastError() == ERROR_INVALID_PARAMETER,
ok( !ret && (GetLastError() == ERROR_INVALID_PARAMETER ||
GetLastError() == ERROR_INVALID_WINDOW_HANDLE),
"FlashWindow returned with %d\n", GetLastError() );
}
@ -7859,7 +7861,8 @@ static void test_FlashWindowEx(void)
finfo.hwnd = NULL;
SetLastError(0xdeadbeef);
ret = pFlashWindowEx(&finfo);
ok(!ret && GetLastError() == ERROR_INVALID_PARAMETER,
ok(!ret && (GetLastError() == ERROR_INVALID_PARAMETER ||
GetLastError() == ERROR_INVALID_WINDOW_HANDLE),
"FlashWindowEx returned with %d\n", GetLastError());
finfo.hwnd = hwnd;
@ -7889,7 +7892,8 @@ static void test_FlashWindowEx(void)
SetLastError(0xdeadbeef);
ret = pFlashWindowEx(&finfo);
ok(!ret && GetLastError() == ERROR_INVALID_PARAMETER,
ok(!ret && (GetLastError() == ERROR_INVALID_PARAMETER ||
GetLastError() == ERROR_INVALID_WINDOW_HANDLE),
"FlashWindowEx returned with %d\n", GetLastError());
ok(finfo.cbSize == sizeof(FLASHWINFO), "FlashWindowEx modified cdSize to %x\n", finfo.cbSize);