Commit 785d957e authored by Robert Shearman's avatar Robert Shearman Committed by Alexandre Julliard

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

parent 3a77ee1d
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment