Commit 437123b5 authored by Andrey Gusev's avatar Andrey Gusev Committed by Alexandre Julliard

shlwapi: Avoid 'else if' for IStream_fnQueryInterface.

parent 45111f90
......@@ -67,10 +67,8 @@ static HRESULT WINAPI IStream_fnQueryInterface(IStream *iface, REFIID riid, LPVO
*ppvObj = NULL;
if(IsEqualIID(riid, &IID_IUnknown)) /*IUnknown*/
*ppvObj = This;
else if(IsEqualIID(riid, &IID_IStream)) /*IStream*/
*ppvObj = This;
if(IsEqualIID(riid, &IID_IUnknown) || IsEqualIID(riid, &IID_IStream))
*ppvObj = &This->IStream_iface;
if(*ppvObj)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment