ole32/datacache: Handle stream Stat() failure (PVS-Studio).
This commit is contained in:
parent
5c6e2032d8
commit
3376648224
|
@ -576,6 +576,11 @@ static HRESULT DataCacheEntry_LoadData(DataCacheEntry *cache_entry)
|
|||
hres = IStream_Stat(presStream,
|
||||
&streamInfo,
|
||||
STATFLAG_NONAME);
|
||||
if (FAILED(hres))
|
||||
{
|
||||
IStream_Release(presStream);
|
||||
return hres;
|
||||
}
|
||||
|
||||
/*
|
||||
* Read the header.
|
||||
|
|
Loading…
Reference in New Issue