Fixed IEnumPinsImpl_Next.

This commit is contained in:
Christian Costa 2004-11-19 18:03:19 +00:00 committed by Alexandre Julliard
parent 954a612c49
commit c0b772dc51
1 changed files with 4 additions and 4 deletions

View File

@ -108,10 +108,10 @@ static HRESULT WINAPI IEnumPinsImpl_Next(IEnumPins * iface, ULONG cPins, IPin **
if (cFetched > 0)
{
ULONG i;
*ppPins = This->enumPinDetails.ppPins[This->uIndex];
for (i = This->uIndex; i < This->uIndex + cFetched; i++)
IPin_AddRef(This->enumPinDetails.ppPins[i]);
for (i = 0; i < cFetched; i++) {
IPin_AddRef(This->enumPinDetails.ppPins[This->uIndex + i]);
ppPins[i] = This->enumPinDetails.ppPins[This->uIndex + i];
}
}
if ((cPins != 1) || pcFetched)