mirror of
https://github.com/reactos/wine.git
synced 2025-02-12 23:58:56 +00:00
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…
x
Reference in New Issue
Block a user