quartz: Fix error code when checking circular connection.
Signed-off-by: Qian Hong <qhong@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
7408a3a79e
commit
8254058cbb
|
@ -611,7 +611,7 @@ static HRESULT CheckCircularConnection(IFilterGraphImpl *This, IPin *out, IPin *
|
|||
if (info_out.dir != PINDIR_OUTPUT)
|
||||
{
|
||||
IBaseFilter_Release(info_out.pFilter);
|
||||
return E_UNEXPECTED;
|
||||
return VFW_E_CANNOT_CONNECT;
|
||||
}
|
||||
|
||||
hr = IPin_QueryPinInfo(in, &info_in);
|
||||
|
@ -621,7 +621,7 @@ static HRESULT CheckCircularConnection(IFilterGraphImpl *This, IPin *out, IPin *
|
|||
goto out;
|
||||
if (info_in.dir != PINDIR_INPUT)
|
||||
{
|
||||
hr = E_UNEXPECTED;
|
||||
hr = VFW_E_CANNOT_CONNECT;
|
||||
goto out;
|
||||
}
|
||||
|
||||
|
|
|
@ -214,7 +214,6 @@ static void test_graph_builder(void)
|
|||
ok(hr == E_POINTER, "IGraphBuilder_Connect returned %x\n", hr);
|
||||
|
||||
hr = IGraphBuilder_Connect(pgraph, pIn, pIn);
|
||||
todo_wine
|
||||
ok(hr == VFW_E_CANNOT_CONNECT, "IGraphBuilder_Connect returned %x\n", hr);
|
||||
|
||||
if (pIn) IPin_Release(pIn);
|
||||
|
|
Loading…
Reference in New Issue