ole32: Update reference counter of returned moniker in CreateGenericComposite.
This commit is contained in:
parent
c5b4c8e882
commit
770213e16c
|
@ -1938,10 +1938,12 @@ CreateGenericComposite(IMoniker *pmkFirst, IMoniker *pmkRest, IMoniker **ppmkCom
|
||||||
if (pmkFirst==NULL && pmkRest!=NULL){
|
if (pmkFirst==NULL && pmkRest!=NULL){
|
||||||
|
|
||||||
*ppmkComposite=pmkRest;
|
*ppmkComposite=pmkRest;
|
||||||
|
IMoniker_AddRef(pmkRest);
|
||||||
return S_OK;
|
return S_OK;
|
||||||
}
|
}
|
||||||
else if (pmkFirst!=NULL && pmkRest==NULL){
|
else if (pmkFirst!=NULL && pmkRest==NULL){
|
||||||
*ppmkComposite=pmkFirst;
|
*ppmkComposite=pmkFirst;
|
||||||
|
IMoniker_AddRef(pmkFirst);
|
||||||
return S_OK;
|
return S_OK;
|
||||||
}
|
}
|
||||||
else if (pmkFirst==NULL && pmkRest==NULL)
|
else if (pmkFirst==NULL && pmkRest==NULL)
|
||||||
|
|
Loading…
Reference in New Issue