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

Huw Davies huw at codeweavers.com
Wed Nov 30 06:46:59 CST 2016


Signed-off-by: Huw Davies <huw at codeweavers.com>
---
 dlls/user32/tests/win.c | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)

diff --git a/dlls/user32/tests/win.c b/dlls/user32/tests/win.c
index 2ba5f76..428a88f 100644
--- a/dlls/user32/tests/win.c
+++ b/dlls/user32/tests/win.c
@@ -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);
-- 
2.8.2




More information about the wine-patches mailing list