Dmitry Timoshkov : ole32: Zero out returned stats when IEnumSTATSTG:: Next reaches end of enumeration.
Alexandre Julliard
julliard at wine.codeweavers.com
Mon Nov 2 09:47:15 CST 2015
Module: wine
Branch: master
Commit: 9f2bd8503d7fc65a194a12ec5b9245fb027e1ce1
URL: http://source.winehq.org/git/wine.git/?a=commit;h=9f2bd8503d7fc65a194a12ec5b9245fb027e1ce1
Author: Dmitry Timoshkov <dmitry at baikal.ru>
Date: Mon Nov 2 11:34:41 2015 +0800
ole32: Zero out returned stats when IEnumSTATSTG::Next reaches end of enumeration.
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, 3 insertions(+)
diff --git a/dlls/ole32/storage32.c b/dlls/ole32/storage32.c
index 4d775b4..f75e097 100644
--- a/dlls/ole32/storage32.c
+++ b/dlls/ole32/storage32.c
@@ -1031,7 +1031,10 @@ static HRESULT WINAPI IEnumSTATSTGImpl_Next(
hr = IEnumSTATSTGImpl_GetNextRef(This, ¤tSearchNode);
if (FAILED(hr) || currentSearchNode == DIRENTRY_NULL)
+ {
+ memset(currentReturnStruct, 0, sizeof(*currentReturnStruct));
break;
+ }
/*
* Read the entry from the storage.
More information about the wine-cvs
mailing list