Module: wine Branch: master Commit: 682291fb71288b292d590093f1021a3cd418a2fa URL: http://source.winehq.org/git/wine.git/?a=commit;h=682291fb71288b292d590093f1...
Author: Qian Hong qhong@codeweavers.com Date: Mon Nov 9 16:44:23 2015 +0800
quartz: Fix crashing when connect to NULL Pin.
Signed-off-by: Qian Hong qhong@codeweavers.com Signed-off-by: Alexandre Julliard julliard@winehq.org
---
dlls/quartz/filtergraph.c | 3 +++ 1 file changed, 3 insertions(+)
diff --git a/dlls/quartz/filtergraph.c b/dlls/quartz/filtergraph.c index 26a4080..e0474fc 100644 --- a/dlls/quartz/filtergraph.c +++ b/dlls/quartz/filtergraph.c @@ -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);