mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-06 20:09:27 +00:00
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>
This commit is contained in:
parent
7bc1005f56
commit
9f2bd8503d
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue