quartz: Fix crashing when connect to NULL Pin.
Signed-off-by: Qian Hong <qhong@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
038cb1183a
commit
682291fb71
|
@ -913,6 +913,9 @@ static HRESULT WINAPI FilterGraph2_Connect(IFilterGraph2 *iface, IPin *ppinOut,
|
||||||
|
|
||||||
TRACE("(%p/%p)->(%p, %p)\n", This, iface, ppinOut, ppinIn);
|
TRACE("(%p/%p)->(%p, %p)\n", This, iface, ppinOut, ppinIn);
|
||||||
|
|
||||||
|
if(!ppinOut || !ppinIn)
|
||||||
|
return E_POINTER;
|
||||||
|
|
||||||
if (TRACE_ON(quartz))
|
if (TRACE_ON(quartz))
|
||||||
{
|
{
|
||||||
hr = IPin_QueryPinInfo(ppinIn, &PinInfo);
|
hr = IPin_QueryPinInfo(ppinIn, &PinInfo);
|
||||||
|
|
Loading…
Reference in New Issue