Detlef Riekenberg : qcap/tests: Avoid a crash in a test.

Alexandre Julliard julliard at winehq.org
Mon Apr 22 16:30:39 CDT 2019


Module: wine
Branch: master
Commit: b1a62796759e5b916c90a16c05e6ca949e956277
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=b1a62796759e5b916c90a16c05e6ca949e956277

Author: Detlef Riekenberg <wine.dev at web.de>
Date:   Tue Apr 16 19:16:45 2019 +0200

qcap/tests: Avoid a crash in a test.

VfW is not supported on 64-Bit Windows

Signed-off-by: Detlef Riekenberg <wine.dev at web.de>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

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

diff --git a/dlls/qcap/tests/qcap.c b/dlls/qcap/tests/qcap.c
index a250139..c460991 100644
--- a/dlls/qcap/tests/qcap.c
+++ b/dlls/qcap/tests/qcap.c
@@ -1771,9 +1771,9 @@ static void test_COM_vfwcapture(void)
     /* COM aggregation */
     hr = CoCreateInstance(&CLSID_VfwCapture, &unk_obj.IUnknown_iface, CLSCTX_INPROC_SERVER,
             &IID_IUnknown, (void**)&unk_obj.inner_unk);
-    if (hr == REGDB_E_CLASSNOTREG)
+    if ((hr == REGDB_E_CLASSNOTREG) || (hr == CLASS_E_CLASSNOTAVAILABLE))
     {
-        win_skip("CLSID_VfwCapture not registered\n");
+        win_skip("CLSID_VfwCapture not supported (0x%x)\n", hr);
         return;
     }
     ok(hr == S_OK, "VfwCapture create failed: %08x\n", hr);




More information about the wine-cvs mailing list