From d69bdcfc2137775fa1f760c2eccca3bf7602d9a7 Mon Sep 17 00:00:00 2001 From: Jakob Eriksson Date: Fri, 25 Mar 2005 10:25:24 +0000 Subject: [PATCH] Don't run FilterGraph tests if FilterGraph functionality is not available. --- dlls/quartz/tests/filtergraph.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/dlls/quartz/tests/filtergraph.c b/dlls/quartz/tests/filtergraph.c index b309343d7f..63d8490765 100644 --- a/dlls/quartz/tests/filtergraph.c +++ b/dlls/quartz/tests/filtergraph.c @@ -31,12 +31,10 @@ static const WCHAR file[] = {'t','e','s','t','.','a','v','i',0}; 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 @@ START_TEST(filtergraph) HANDLE h; CoInitialize(NULL); - createfiltergraph(); + if (!createfiltergraph()) + return; h = CreateFileW(file, 0, 0, NULL, OPEN_EXISTING, 0, NULL); if (h != INVALID_HANDLE_VALUE) { -- 2.33.8