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