ole32: Simplify QueryInterface.
This commit is contained in:
parent
d72181381e
commit
319d0ddca6
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue