quartz: Fix return value in IFilterGraph_FindFilterByName.

This commit is contained in:
Lei Zhang 2007-12-05 20:11:13 -08:00 committed by Alexandre Julliard
parent 646eefaa47
commit 31aab42934
2 changed files with 2 additions and 4 deletions

View File

@ -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

View File

@ -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);