[QUARTZ] Fix for IEnumPinsImpl_Next
Christian Costa
titan.costa at wanadoo.fr
Thu Nov 11 18:22:13 CST 2004
Hi,
Changelog:
Fixed IEnumPinsImpl_Next.
Christian Costa titan.costa at wanadoo.fr
-------------- next part --------------
Index: enumpins.c
===================================================================
RCS file: /home/wine/wine/dlls/quartz/enumpins.c,v
retrieving revision 1.3
diff -u -r1.3 enumpins.c
--- enumpins.c 8 Sep 2004 01:50:37 -0000 1.3
+++ enumpins.c 11 Nov 2004 22:11:13 -0000
@@ -108,10 +108,10 @@
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)
More information about the wine-patches
mailing list