Sebastian Lackner : mshtml/tests: Fix incorrect usage of broken() function.

Alexandre Julliard julliard at winehq.org
Thu Sep 8 10:39:21 CDT 2016


Module: wine
Branch: master
Commit: 01581bfc48161c3c55027334b1ecb9e909873a6b
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=01581bfc48161c3c55027334b1ecb9e909873a6b

Author: Sebastian Lackner <sebastian at fds-team.de>
Date:   Thu Sep  8 11:17:15 2016 +0200

mshtml/tests: Fix incorrect usage of broken() function.

Signed-off-by: Sebastian Lackner <sebastian at fds-team.de>
Signed-off-by: Jacek Caban<jacek at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/mshtml/tests/script.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/mshtml/tests/script.c b/dlls/mshtml/tests/script.c
index 92a6f67..e8b3d19 100644
--- a/dlls/mshtml/tests/script.c
+++ b/dlls/mshtml/tests/script.c
@@ -1968,7 +1968,7 @@ static void test_func(IDispatchEx *obj)
     memset(&ei, 0, sizeof(ei));
     VariantInit(&var);
     hres = IDispatchEx_Invoke(dispex, DISPID_VALUE, &IID_NULL, LOCALE_NEUTRAL, DISPATCH_METHOD, &dp, &var, &ei, NULL);
-    ok(hres == S_OK || broken(E_ACCESSDENIED), "InvokeEx failed: %08x\n", hres);
+    ok(hres == S_OK || broken(hres == E_ACCESSDENIED), "InvokeEx failed: %08x\n", hres);
     if(SUCCEEDED(hres)) {
         DISPID named_args[2] = { DISPID_THIS, 0xdeadbeef };
         VARIANT args[2];




More information about the wine-cvs mailing list