[Wine-patches] [eter-2.1 2/2] ole32: Zero out returned stats when IEnumSTATSTG::Next reaches end of enumeration. (eterbug #10837).

Dmitry Timoshkov dmitry на baikal.ru
Чт Ноя 5 09:24:21 MSK 2015


---
 dlls/ole32/storage32.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/dlls/ole32/storage32.c b/dlls/ole32/storage32.c
index 75913c0..f072f18 100644
--- a/dlls/ole32/storage32.c
+++ b/dlls/ole32/storage32.c
@@ -5475,7 +5475,10 @@ static HRESULT WINAPI IEnumSTATSTGImpl_Next(
     hr = IEnumSTATSTGImpl_GetNextRef(This, &currentSearchNode);
 
     if (FAILED(hr) || currentSearchNode == DIRENTRY_NULL)
+    {
+      memset(currentReturnStruct, 0, sizeof(*currentReturnStruct));
       break;
+    }
 
     /*
      * Read the entry from the storage.
-- 
2.6.2



Подробная информация о списке рассылки Wine-patches