Sebastian Lackner : oleaut32/tests: Avoid misleading assignment in refcounting tests.

Alexandre Julliard julliard at wine.codeweavers.com
Tue Feb 16 09:54:58 CST 2016


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

Author: Sebastian Lackner <sebastian at fds-team.de>
Date:   Mon Feb 15 22:43:53 2016 +0100

oleaut32/tests: Avoid misleading assignment in refcounting tests.

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

---

 dlls/oleaut32/tests/typelib.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/dlls/oleaut32/tests/typelib.c b/dlls/oleaut32/tests/typelib.c
index 8338719..fcce92e 100644
--- a/dlls/oleaut32/tests/typelib.c
+++ b/dlls/oleaut32/tests/typelib.c
@@ -210,7 +210,8 @@ static void ref_count_test(LPCWSTR type_lib)
 
     hRes = ITypeLib_GetTypeInfo(iface, 1, &iti1);
     ok(hRes == S_OK, "ITypeLib_GetTypeInfo failed on index = 1\n");
-    ok(ref_count=ITypeLib_Release(iface) > 0, "ITypeLib destroyed while ITypeInfo has back pointer\n");
+    ref_count = ITypeLib_Release(iface);
+    ok(ref_count > 0, "ITypeLib destroyed while ITypeInfo has back pointer\n");
     if(!ref_count)
         return;
 




More information about the wine-cvs mailing list