oleaut32/tests: Avoid misleading assignment in refcounting tests.

Sebastian Lackner sebastian at fds-team.de
Mon Feb 15 15:43:53 CST 2016


Signed-off-by: Sebastian Lackner <sebastian at fds-team.de>
---

I assume the idea was (ref_count = ITypeLib_Release(iface)) > 0, but thats not what the code does.

 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;
 
-- 
2.7.1



More information about the wine-patches mailing list