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:
parent
45111f901d
commit
437123b58a
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue