quartz: Fix error code when checking circular connection.

Signed-off-by: Qian Hong <qhong@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
oldstable
Qian Hong 2015-11-09 16:45:03 +08:00 committed by Alexandre Julliard
parent 7408a3a79e
commit 8254058cbb
2 changed files with 2 additions and 3 deletions

View File

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

View File

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