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 New Issue