Don't run FilterGraph tests if FilterGraph functionality is not availible
Jakob Eriksson
jakov at vmlinux.org
Thu Mar 24 13:51:37 CST 2005
-------------- next part --------------
Index: dlls/quartz/tests/filtergraph.c
===================================================================
RCS file: /home/wine/wine/dlls/quartz/tests/filtergraph.c,v
retrieving revision 1.5
diff -u -r1.5 filtergraph.c
--- dlls/quartz/tests/filtergraph.c 2 Mar 2005 10:12:12 -0000 1.5
+++ dlls/quartz/tests/filtergraph.c 23 Mar 2005 14:40:24 -0000
@@ -31,12 +31,10 @@
IGraphBuilder* pgraph;
-static void createfiltergraph()
+static int createfiltergraph()
{
- HRESULT hr;
-
- hr = CoCreateInstance(&CLSID_FilterGraph, NULL, CLSCTX_INPROC_SERVER, &IID_IGraphBuilder, (LPVOID*)&pgraph);
- ok(hr==S_OK, "Creating filtergraph returned: %lx\n", hr);
+ return S_OK == CoCreateInstance(
+ &CLSID_FilterGraph, NULL, CLSCTX_INPROC_SERVER, &IID_IGraphBuilder, (LPVOID*)&pgraph);
}
static void renderfile()
@@ -92,7 +90,8 @@
HANDLE h;
CoInitialize(NULL);
- createfiltergraph();
+ if (!createfiltergraph())
+ return;
h = CreateFileW(file, 0, 0, NULL, OPEN_EXISTING, 0, NULL);
if (h != INVALID_HANDLE_VALUE) {
@@ -103,3 +102,4 @@
releasefiltergraph();
}
+
More information about the wine-patches
mailing list