From 1e26f9601d19ab87bdf1028b912627112124193b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20Villac=C3=ADs=20Lasso?= Date: Wed, 28 Sep 2005 18:12:58 +0000 Subject: [PATCH] Add NULL check for sinkInterface in DataCache_GetAdvise. --- dlls/ole32/datacache.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dlls/ole32/datacache.c b/dlls/ole32/datacache.c index 6079bb55e99..a3beacab4ee 100644 --- a/dlls/ole32/datacache.c +++ b/dlls/ole32/datacache.c @@ -1390,9 +1390,11 @@ static HRESULT WINAPI DataCache_GetAdvise( if (ppAdvSink!=NULL) { - IAdviseSink_QueryInterface(this->sinkInterface, + if (this->sinkInterface != NULL) + IAdviseSink_QueryInterface(this->sinkInterface, &IID_IAdviseSink, (void**)ppAdvSink); + else *ppAdvSink = NULL; } return S_OK;