Huw Davies : user32/tests: FlashWindow(Ex) sets ERROR_INVALID_WINDOW_HANDLE on updated Windows 7.
Alexandre Julliard
julliard at winehq.org
Wed Nov 30 16:56:57 CST 2016
Module: wine
Branch: master
Commit: fab7a584c144155fa76dacd042202a5fd61cad76
URL: http://source.winehq.org/git/wine.git/?a=commit;h=fab7a584c144155fa76dacd042202a5fd61cad76
Author: Huw Davies <huw at codeweavers.com>
Date: Wed Nov 30 12:46:59 2016 +0000
user32/tests: FlashWindow(Ex) sets ERROR_INVALID_WINDOW_HANDLE on updated Windows 7.
Signed-off-by: Huw Davies <huw at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
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);
More information about the wine-cvs
mailing list