Commit fab7a584 authored by Huw Davies's avatar Huw Davies Committed by Alexandre Julliard

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

parent 0d9f044d
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment