Commit 31aab429 authored by Lei Zhang's avatar Lei Zhang Committed by Alexandre Julliard

quartz: Fix return value in IFilterGraph_FindFilterByName.

parent 646eefaa
......@@ -495,7 +495,7 @@ static HRESULT WINAPI GraphBuilder_FindFilterByName(IGraphBuilder *iface,
}
}
return E_FAIL; /* FIXME: check this error code */
return VFW_E_NOT_FOUND;
}
/* NOTE: despite the implication, it doesn't matter which
......
......@@ -138,9 +138,7 @@ static void test_graph_builder(void)
ok(dir == PINDIR_INPUT, "pin has wrong direction\n");
hr = IGraphBuilder_FindFilterByName(pgraph, fooBarW, &pF2);
todo_wine {
ok(hr == VFW_E_NOT_FOUND, "IGraphBuilder_FindFilterByName returned %x\n", hr);
}
ok(hr == VFW_E_NOT_FOUND, "IGraphBuilder_FindFilterByName returned %x\n", hr);
ok(pF2 == NULL, "IGraphBuilder_FindFilterByName returned %p\n", pF2);
hr = IGraphBuilder_FindFilterByName(pgraph, testFilterW, &pF2);
ok(hr == S_OK, "IGraphBuilder_FindFilterByName returned %x\n", hr);
......
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