diff --git a/dlls/ole32/datacache.c b/dlls/ole32/datacache.c index 6ae936717b7..2aae5364d15 100644 --- a/dlls/ole32/datacache.c +++ b/dlls/ole32/datacache.c @@ -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.