Qian Hong : quartz: Fix crashing when connect to NULL Pin.
Alexandre Julliard
julliard at wine.codeweavers.com
Wed Nov 11 08:36:44 CST 2015
Module: wine
Branch: master
Commit: 682291fb71288b292d590093f1021a3cd418a2fa
URL: http://source.winehq.org/git/wine.git/?a=commit;h=682291fb71288b292d590093f1021a3cd418a2fa
Author: Qian Hong <qhong at 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 at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at 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);
More information about the wine-cvs
mailing list