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:
Qian Hong 2015-11-09 16:44:23 +08:00 committed by Alexandre Julliard
parent 038cb1183a
commit 682291fb71
1 changed files with 3 additions and 0 deletions

View File

@ -913,6 +913,9 @@ static HRESULT WINAPI FilterGraph2_Connect(IFilterGraph2 *iface, IPin *ppinOut,
TRACE("(%p/%p)->(%p, %p)\n", This, iface, ppinOut, ppinIn);
if(!ppinOut || !ppinIn)
return E_POINTER;
if (TRACE_ON(quartz))
{
hr = IPin_QueryPinInfo(ppinIn, &PinInfo);