ole32: Cleanup QI for IEnumMoniker.

This commit is contained in:
Nikolay Sivov 2015-03-20 09:52:06 +03:00 committed by Alexandre Julliard
parent 853dc5ec2f
commit bc9b29f65d
1 changed files with 2 additions and 7 deletions

View File

@ -1298,17 +1298,12 @@ static HRESULT WINAPI EnumMonikerImpl_QueryInterface(IEnumMoniker* iface,REFIID
*ppvObject = NULL;
if (IsEqualIID(&IID_IUnknown, riid))
*ppvObject = This;
if (IsEqualIID(&IID_IUnknown, riid) || IsEqualIID(&IID_IEnumMoniker, riid))
*ppvObject = &This->IEnumMoniker_iface;
else
if (IsEqualIID(&IID_IEnumMoniker, riid))
*ppvObject = This;
if ((*ppvObject)==NULL)
return E_NOINTERFACE;
IEnumMoniker_AddRef(iface);
return S_OK;
}