Module: wine
Branch: refs/heads/master
Commit: 785d957eb484e7733396a6530d386f43c772a246
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=785d957eb484e7733396a65…
Author: Robert Shearman <rob(a)codeweavers.com>
Date: Mon May 8 12:38:34 2006 +0100
ole32: EnumMonikerImpl_Next should add a reference to the monikers it returns to the caller.
---
dlls/ole32/compositemoniker.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/dlls/ole32/compositemoniker.c b/dlls/ole32/compositemoniker.c
index 36b4c27..989152a 100644
--- a/dlls/ole32/compositemoniker.c
+++ b/dlls/ole32/compositemoniker.c
@@ -1379,8 +1379,10 @@ EnumMonikerImpl_Next(IEnumMoniker* iface
/* 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;