[1/4] dlls/ole32: Handle failure of reading directory entry in IEnumSTATSTG::Next. Resend.
Dmitry Timoshkov
dmitry at baikal.ru
Sun Nov 1 21:34:31 CST 2015
Signed-off-by: Vincent Povirk <vincent at codeweavers.com>
Signed-off-by: Dmitry Timoshkov <dmitry at baikal.ru>
---
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.
--
2.6.2
More information about the wine-patches
mailing list