Commit 8254058c authored by Qian Hong's avatar Qian Hong Committed by Alexandre Julliard

quartz: Fix error code when checking circular connection.

parent 7408a3a7
......@@ -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);
......
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