Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
3d77974f
Commit
3d77974f
authored
Oct 28, 2014
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Oct 29, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dmusic: Remove duplicated interface ID checks (PVS-Studio).
parent
517a4957
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
10 deletions
+4
-10
port.c
dlls/dmusic/port.c
+4
-10
No files found.
dlls/dmusic/port.c
View file @
3d77974f
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment