Rob Shearman : oleaut32: Fix a one-off test failure in the tmarshal tests - TYPE_E_LIBNOTREGISTERED is an expected return value .

Alexandre Julliard julliard at wine.codeweavers.com
Wed Feb 7 16:00:28 CST 2007


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

Author: Rob Shearman <rob at codeweavers.com>
Date:   Wed Feb  7 19:20:15 2007 +0000

oleaut32: Fix a one-off test failure in the tmarshal tests - TYPE_E_LIBNOTREGISTERED is an expected return value.

---

 dlls/oleaut32/tests/tmarshal.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/dlls/oleaut32/tests/tmarshal.c b/dlls/oleaut32/tests/tmarshal.c
index 833c9dd..99bbf00 100644
--- a/dlls/oleaut32/tests/tmarshal.c
+++ b/dlls/oleaut32/tests/tmarshal.c
@@ -662,12 +662,13 @@ static IKindaEnumWidget *KindaEnumWidget
     ITypeLib *pTypeLib;
 
     hr = LoadRegTypeLib(&LIBID_TestTypelib, 1, 0, LOCALE_NEUTRAL, &pTypeLib);
-    ok_ole_success(hr, LoadRegTypeLib);
     if (hr == TYPE_E_LIBNOTREGISTERED)
     {
         hr = register_current_module_typelib(&pTypeLib);
         ok_ole_success(hr, register_current_module_typelib);
     }
+    else
+        ok_ole_success(hr, LoadRegTypeLib);
     if (SUCCEEDED(hr))
         ITypeLib_Release(pTypeLib);
 




More information about the wine-cvs mailing list