Skip to content
Snippets Groups Projects
Commit 319d0ddc authored by Huw Davies's avatar Huw Davies Committed by Alexandre Julliard
Browse files

ole32: Simplify QueryInterface.

parent d7218138
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment