urlmon: Call AddRef in EnumFORMATETC::QueryInterface.

This commit is contained in:
Jacek Caban 2007-12-30 17:44:15 +01:00 committed by Alexandre Julliard
parent 91087d6229
commit a16ae2e8f2
1 changed files with 1 additions and 0 deletions

View File

@ -44,6 +44,7 @@ static HRESULT WINAPI EnumFORMATETC_QueryInterface(IEnumFORMATETC *iface, REFIID
*ppv = NULL; *ppv = NULL;
if(IsEqualGUID(&IID_IUnknown, riid) || IsEqualGUID(&IID_IEnumFORMATETC, riid)) { if(IsEqualGUID(&IID_IUnknown, riid) || IsEqualGUID(&IID_IEnumFORMATETC, riid)) {
IEnumFORMATETC_AddRef(iface);
*ppv = iface; *ppv = iface;
return S_OK; return S_OK;
} }