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)
|
||||
{
|
||||
IAdviseSink_QueryInterface(this->sinkInterface,
|
||||
if (this->sinkInterface != NULL)
|
||||
IAdviseSink_QueryInterface(this->sinkInterface,
|
||||
&IID_IAdviseSink,
|
||||
(void**)ppAdvSink);
|
||||
else *ppAdvSink = NULL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
|
|
Loading…
Reference in New Issue