Dmitry Timoshkov : ole32: Handle failure of reading directory entry in IEnumSTATSTG::Next.

Alexandre Julliard julliard at wine.codeweavers.com
Mon Nov 2 09:47:15 CST 2015


Module: wine
Branch: master
Commit: 7bc1005f56da97df89dfbf3262175a7a92eeb446
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=7bc1005f56da97df89dfbf3262175a7a92eeb446

Author: Dmitry Timoshkov <dmitry at 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 at codeweavers.com>
Signed-off-by: Dmitry Timoshkov <dmitry at baikal.ru>
Signed-off-by: Alexandre Julliard <julliard at 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,
       &currentEntry);
+    if (FAILED(hr)) break;
 
     /*
      * Copy the information to the return buffer.




More information about the wine-cvs mailing list