Add NULL check for sinkInterface in DataCache_GetAdvise.
This commit is contained in:
parent
a90c11330e
commit
1e26f9601d
|
@ -1390,9 +1390,11 @@ static HRESULT WINAPI DataCache_GetAdvise(
|
||||||
|
|
||||||
if (ppAdvSink!=NULL)
|
if (ppAdvSink!=NULL)
|
||||||
{
|
{
|
||||||
|
if (this->sinkInterface != NULL)
|
||||||
IAdviseSink_QueryInterface(this->sinkInterface,
|
IAdviseSink_QueryInterface(this->sinkInterface,
|
||||||
&IID_IAdviseSink,
|
&IID_IAdviseSink,
|
||||||
(void**)ppAdvSink);
|
(void**)ppAdvSink);
|
||||||
|
else *ppAdvSink = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
return S_OK;
|
return S_OK;
|
||||||
|
|
Loading…
Reference in New Issue