Module: wine Branch: master Commit: 33766482249c17095545155bd08d206a6cbb1cc7 URL: http://source.winehq.org/git/wine.git/?a=commit;h=33766482249c17095545155bd0...
Author: Nikolay Sivov nsivov@codeweavers.com Date: Thu Mar 19 09:37:25 2015 +0300
ole32/datacache: Handle stream Stat() failure (PVS-Studio).
---
dlls/ole32/datacache.c | 5 +++++ 1 file changed, 5 insertions(+)
diff --git a/dlls/ole32/datacache.c b/dlls/ole32/datacache.c index 6ae9367..2aae536 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.