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;
if(IsEqualIID(riid, &IID_IUnknown))
{
*ppvObj = This;
}
else if(IsEqualIID(riid, &IID_IEnumFORMATETC))
if(IsEqualIID(riid, &IID_IUnknown) ||
IsEqualIID(riid, &IID_IEnumFORMATETC))
{
*ppvObj = This;
}