[PATCH] ole32/tests: Fix some test failures on Windows XP.

Sven Baars sven.wine at gmail.com
Fri Nov 1 10:30:44 CDT 2019


Signed-off-by: Sven Baars <sven.wine at gmail.com>
---
These tests started failing since 1e6b130b85d33d38231fc15b5b5e9bf41a24e0b6

 dlls/ole32/tests/compobj.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/ole32/tests/compobj.c b/dlls/ole32/tests/compobj.c
index 69a38d48b2..8412ee45a0 100644
--- a/dlls/ole32/tests/compobj.c
+++ b/dlls/ole32/tests/compobj.c
@@ -757,7 +757,7 @@ static void test_CoGetClassObject(void)
         IUnknown_Release(pUnk);
 
         hr = CoGetClassObject(&IID_Testiface7, CLSCTX_INPROC_SERVER, NULL, &IID_IUnknown, (void **)&pUnk);
-        ok(hr == 0x80001235, "Unexpected hr %#x.\n", hr);
+        ok(hr == 0x80001235 || broken(hr == HRESULT_FROM_WIN32(ERROR_MOD_NOT_FOUND)) /* winxp */, "Unexpected hr %#x.\n", hr);
 
         hr = CoGetClassObject(&IID_Testiface8, CLSCTX_INPROC_SERVER, NULL, &IID_IUnknown, (void **)&pUnk);
         ok(hr == REGDB_E_CLASSNOTREG, "Unexpected hr %#x.\n", hr);
@@ -1573,7 +1573,7 @@ static void test_CoRegisterClassObject(void)
     if ((handle = activate_context(actctx_manifest, &ctxcookie)))
     {
         hr = CoGetClassObject(&CLSID_WineOOPTest, CLSCTX_INPROC_SERVER, NULL, &IID_IClassFactory, (void**)&pcf);
-        ok(hr == 0x80001234, "Unexpected hr %#x.\n", hr);
+        ok(hr == 0x80001234 || broken(hr == HRESULT_FROM_WIN32(ERROR_MOD_NOT_FOUND)) /* winxp */, "Unexpected hr %#x.\n", hr);
 
         deactivate_context(handle, ctxcookie);
     }
-- 
2.17.1




More information about the wine-devel mailing list