[Wine-patches] [eter-2.1 1/2] ole32: Handle failure of reading directory entry in IEnumSTATSTG::Next. (eterbug #10837).
Dmitry Timoshkov
dmitry на baikal.ru
Чт Ноя 5 09:24:14 MSK 2015
---
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 675163b..75913c0 100644
--- a/dlls/ole32/storage32.c
+++ b/dlls/ole32/storage32.c
@@ -5480,9 +5480,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
Подробная информация о списке рассылки Wine-patches