From c0b772dc51ca74e01f6cb622721efc360bf7452b Mon Sep 17 00:00:00 2001 From: Christian Costa Date: Fri, 19 Nov 2004 18:03:19 +0000 Subject: [PATCH] Fixed IEnumPinsImpl_Next. --- dlls/quartz/enumpins.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dlls/quartz/enumpins.c b/dlls/quartz/enumpins.c index 4544a7ddb7e..8b2ee59153e 100644 --- a/dlls/quartz/enumpins.c +++ b/dlls/quartz/enumpins.c @@ -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) -- 2.11.4.GIT