shlwapi: Avoid 'else if' for IStream_fnQueryInterface.

Signed-off-by: Andrey Gusev <andrey.goosev@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Andrey Gusev 2017-01-25 13:19:46 +02:00 committed by Alexandre Julliard
parent 45111f901d
commit 437123b58a
1 changed files with 2 additions and 4 deletions

View File

@ -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)
{