ole32/datacache: Handle stream Stat() failure (PVS-Studio).

This commit is contained in:
Nikolay Sivov 2015-03-19 09:37:25 +03:00 committed by Alexandre Julliard
parent 5c6e2032d8
commit 3376648224
1 changed files with 5 additions and 0 deletions

View File

@ -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.