Andrey Gusev : user32/tests: Fix incorrect usage of broken() function.
Module: wine Branch: master Commit: f669dc69cdcaf08aa197c98f68a1dfb4f8a265b1 URL: http://source.winehq.org/git/wine.git/?a=commit;h=f669dc69cdcaf08aa197c98f68... Author: Andrey Gusev <andrey.goosev(a)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(a)gmail.com> Signed-off-by: Alexandre Julliard <julliard(a)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 );
participants (1)
-
Alexandre Julliard