Module: wine Branch: master Commit: 7bc1005f56da97df89dfbf3262175a7a92eeb446 URL: http://source.winehq.org/git/wine.git/?a=commit;h=7bc1005f56da97df89dfbf3262...
Author: Dmitry Timoshkov dmitry@baikal.ru Date: Mon Nov 2 11:34:31 2015 +0800
ole32: Handle failure of reading directory entry in IEnumSTATSTG::Next.
Signed-off-by: Vincent Povirk vincent@codeweavers.com Signed-off-by: Dmitry Timoshkov dmitry@baikal.ru Signed-off-by: Alexandre Julliard julliard@winehq.org
---
dlls/ole32/storage32.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/dlls/ole32/storage32.c b/dlls/ole32/storage32.c index bfef4a2..4d775b4 100644 --- a/dlls/ole32/storage32.c +++ b/dlls/ole32/storage32.c @@ -1036,9 +1036,10 @@ static HRESULT WINAPI IEnumSTATSTGImpl_Next( /* * Read the entry from the storage. */ - StorageBaseImpl_ReadDirEntry(This->parentStorage, + hr = StorageBaseImpl_ReadDirEntry(This->parentStorage, currentSearchNode, ¤tEntry); + if (FAILED(hr)) break;
/* * Copy the information to the return buffer.