Paul Vriens : itss/tests: Fix test failures on some Win95 and NT4 boxes.

Alexandre Julliard julliard at winehq.org
Fri Feb 20 12:49:36 CST 2009


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

Author: Paul Vriens <Paul.Vriens.Wine at gmail.com>
Date:   Fri Feb 20 12:39:30 2009 +0100

itss/tests: Fix test failures on some Win95 and NT4 boxes.

---

 dlls/itss/tests/protocol.c |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/dlls/itss/tests/protocol.c b/dlls/itss/tests/protocol.c
index f93d131..b52e3d3 100644
--- a/dlls/itss/tests/protocol.c
+++ b/dlls/itss/tests/protocol.c
@@ -571,7 +571,9 @@ static void test_its_protocol(void)
     test_protocol = ITS_PROTOCOL;
 
     hres = CoGetClassObject(&CLSID_ITSProtocol, CLSCTX_INPROC_SERVER, NULL, &IID_IUnknown, (void**)&unk);
-    ok(hres == S_OK, "CoGetClassObject failed: %08x\n", hres);
+    ok(hres == S_OK ||
+       broken(hres == REGDB_E_CLASSNOTREG), /* Some W95 and NT4 */
+       "CoGetClassObject failed: %08x\n", hres);
     if(FAILED(hres))
         return;
 
@@ -629,7 +631,9 @@ static void test_mk_protocol(void)
 
     hres = CoGetClassObject(&CLSID_MkProtocol, CLSCTX_INPROC_SERVER, NULL, &IID_IClassFactory,
                             (void**)&cf);
-    ok(hres == S_OK, "CoGetClassObject failed: %08x\n", hres);
+    ok(hres == S_OK ||
+       broken(hres == REGDB_E_CLASSNOTREG), /* Some W95 and NT4 */
+       "CoGetClassObject failed: %08x\n", hres);
     if(FAILED(hres))
         return;
 




More information about the wine-cvs mailing list