Andrey Gusev : user32/tests: Fix incorrect usage of broken() function.
Alexandre Julliard
julliard at winehq.org
Tue Sep 27 11:08:52 CDT 2016
Module: wine
Branch: master
Commit: f669dc69cdcaf08aa197c98f68a1dfb4f8a265b1
URL: http://source.winehq.org/git/wine.git/?a=commit;h=f669dc69cdcaf08aa197c98f68a1dfb4f8a265b1
Author: Andrey Gusev <andrey.goosev at gmail.com>
Date: Thu Sep 8 21:18:59 2016 +0300
user32/tests: Fix incorrect usage of broken() function.
Signed-off-by: Andrey Gusev <andrey.goosev at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/user32/tests/msg.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/user32/tests/msg.c b/dlls/user32/tests/msg.c
index 9162aba..b132dfe 100644
--- a/dlls/user32/tests/msg.c
+++ b/dlls/user32/tests/msg.c
@@ -15554,8 +15554,8 @@ static void test_layered_window(void)
size.cx = 0;
ret = pUpdateLayeredWindow( hwnd, 0, &pos, &size, hdc, &src, 0, NULL, ULW_OPAQUE );
ok( !ret, "UpdateLayeredWindow should fail on non-layered window\n" );
- ok( GetLastError() == ERROR_INVALID_PARAMETER || broken(ERROR_MR_MID_NOT_FOUND) /* win7 */,
- "wrong error %u\n", GetLastError() );
+ ok( GetLastError() == ERROR_INVALID_PARAMETER || broken(GetLastError() == ERROR_MR_MID_NOT_FOUND) ||
+ broken(GetLastError() == ERROR_GEN_FAILURE) /* win7 */, "wrong error %u\n", GetLastError() );
size.cx = 1;
size.cy = -1;
ret = pUpdateLayeredWindow( hwnd, 0, &pos, &size, hdc, &src, 0, NULL, ULW_OPAQUE );
More information about the wine-cvs
mailing list