Commit c0b772dc authored by Christian Costa's avatar Christian Costa Committed by Alexandre Julliard

Fixed IEnumPinsImpl_Next.

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