dmusic: Remove duplicated interface ID checks (PVS-Studio).
This commit is contained in:
parent
517a495737
commit
3d77974f76
|
@ -49,9 +49,7 @@ static HRESULT WINAPI IDirectMusicDownloadedInstrumentImpl_QueryInterface(IDirec
|
|||
{
|
||||
TRACE("(%p, %s, %p)\n", iface, debugstr_dmguid(riid), ret_iface);
|
||||
|
||||
if (IsEqualIID(riid, &IID_IUnknown) ||
|
||||
IsEqualIID(riid, &IID_IDirectMusicDownloadedInstrument) ||
|
||||
IsEqualIID(riid, &IID_IDirectMusicDownloadedInstrument8))
|
||||
if (IsEqualIID(riid, &IID_IUnknown) || IsEqualIID(riid, &IID_IDirectMusicDownloadedInstrument))
|
||||
{
|
||||
IDirectMusicDownloadedInstrument_AddRef(iface);
|
||||
*ret_iface = iface;
|
||||
|
@ -132,19 +130,15 @@ static HRESULT WINAPI SynthPortImpl_IDirectMusicPort_QueryInterface(LPDIRECTMUSI
|
|||
|
||||
TRACE("(%p/%p)->(%s, %p)\n", iface, This, debugstr_dmguid(riid), ret_iface);
|
||||
|
||||
if (IsEqualIID (riid, &IID_IUnknown) ||
|
||||
IsEqualGUID(riid, &IID_IDirectMusicPort) ||
|
||||
IsEqualGUID(riid, &IID_IDirectMusicPort8)) {
|
||||
if (IsEqualIID(riid, &IID_IUnknown) || IsEqualGUID(riid, &IID_IDirectMusicPort)) {
|
||||
*ret_iface = &This->IDirectMusicPort_iface;
|
||||
IDirectMusicPort_AddRef((LPDIRECTMUSICPORT)*ret_iface);
|
||||
return S_OK;
|
||||
} else if (IsEqualGUID(riid, &IID_IDirectMusicPortDownload) ||
|
||||
IsEqualGUID(riid, &IID_IDirectMusicPortDownload8)) {
|
||||
} else if (IsEqualGUID(riid, &IID_IDirectMusicPortDownload)) {
|
||||
*ret_iface = &This->IDirectMusicPortDownload_iface;
|
||||
IDirectMusicPortDownload_AddRef((LPDIRECTMUSICPORTDOWNLOAD)*ret_iface);
|
||||
return S_OK;
|
||||
} else if (IsEqualGUID(riid, &IID_IDirectMusicThru) ||
|
||||
IsEqualGUID(riid, &IID_IDirectMusicThru8)) {
|
||||
} else if (IsEqualGUID(riid, &IID_IDirectMusicThru)) {
|
||||
*ret_iface = &This->IDirectMusicThru_iface;
|
||||
IDirectMusicThru_AddRef((LPDIRECTMUSICTHRU)*ret_iface);
|
||||
return S_OK;
|
||||
|
|
Loading…
Reference in New Issue