ole32: Simplify QueryInterface.

This commit is contained in:
Huw Davies 2009-03-17 14:27:18 +00:00 committed by Alexandre Julliard
parent d72181381e
commit 319d0ddca6
1 changed files with 2 additions and 5 deletions

View File

@ -183,11 +183,8 @@ static HRESULT WINAPI OLEClipbrd_IEnumFORMATETC_QueryInterface
*ppvObj = NULL; *ppvObj = NULL;
if(IsEqualIID(riid, &IID_IUnknown)) if(IsEqualIID(riid, &IID_IUnknown) ||
{ IsEqualIID(riid, &IID_IEnumFORMATETC))
*ppvObj = This;
}
else if(IsEqualIID(riid, &IID_IEnumFORMATETC))
{ {
*ppvObj = This; *ppvObj = This;
} }