ole32: EnumMonikerImpl_Next should add a reference to the monikers it returns to the caller.

This commit is contained in:
Robert Shearman 2006-05-08 12:38:34 +01:00 committed by Alexandre Julliard
parent 3a77ee1d5e
commit 785d957eb4
1 changed files with 3 additions and 1 deletions

View File

@ -1379,8 +1379,10 @@ EnumMonikerImpl_Next(IEnumMoniker* iface,ULONG celt, IMoniker** rgelt,
/* retrieve the requested number of moniker from the current position */
for(i=0;((This->currentPos < This->tabSize) && (i < celt));i++)
{
rgelt[i]=This->tabMoniker[This->currentPos++];
IMoniker_AddRef(rgelt[i]);
}
if (pceltFethed!=NULL)
*pceltFethed= i;