Fix typelib test.

Jakob Eriksson jakov at vmlinux.org
Wed Dec 29 10:41:03 CST 2004



Not being able to load is not an error.

-------------- next part --------------
Index: dlls/oleaut32/tests/typelib.c
===================================================================
RCS file: /home/wine/wine/dlls/oleaut32/tests/typelib.c,v
retrieving revision 1.1
diff -u -r1.1 typelib.c
--- dlls/oleaut32/tests/typelib.c	19 Aug 2004 20:29:16 -0000	1.1
+++ dlls/oleaut32/tests/typelib.c	29 Dec 2004 16:39:51 -0000
@@ -34,11 +34,12 @@
     HRESULT hRes;
     int ref_count;
 
-    trace("Loading type library\n");
     hRes = LoadTypeLib(type_lib, &iface);
-    ok(hRes == S_OK, "Could not load type library\n");
     if(hRes != S_OK)
+    {
+        trace("Could not load type library.\n");
         return;
+    }
 
     hRes = ITypeLib_GetTypeInfo(iface, 1, &iti1);
     ok(hRes == S_OK, "ITypeLib_GetTypeInfo failed on index = 1\n");


More information about the wine-patches mailing list