Module: wine Branch: master Commit: 9f2bd8503d7fc65a194a12ec5b9245fb027e1ce1 URL: http://source.winehq.org/git/wine.git/?a=commit;h=9f2bd8503d7fc65a194a12ec5b...
Author: Dmitry Timoshkov dmitry@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@baikal.ru Signed-off-by: Alexandre Julliard julliard@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.