Commit d69bdcfc authored by Jakob Eriksson's avatar Jakob Eriksson Committed by Alexandre Julliard

Don't run FilterGraph tests if FilterGraph functionality is not

available.
parent ec6f9ad3
......@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment