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
ca87c493
Commit
ca87c493
authored
Oct 05, 2016
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Oct 05, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dmusic: Simplify the IDirectMusicPort_QueryInterface implementation.
Signed-off-by:
Michael Stefaniuc
<
mstefani@redhat.de
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
1dc5cc34
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
11 deletions
+9
-11
port.c
dlls/dmusic/port.c
+9
-11
No files found.
dlls/dmusic/port.c
View file @
ca87c493
...
@@ -130,23 +130,21 @@ static HRESULT WINAPI SynthPortImpl_IDirectMusicPort_QueryInterface(LPDIRECTMUSI
...
@@ -130,23 +130,21 @@ static HRESULT WINAPI SynthPortImpl_IDirectMusicPort_QueryInterface(LPDIRECTMUSI
TRACE
(
"(%p/%p)->(%s, %p)
\n
"
,
iface
,
This
,
debugstr_dmguid
(
riid
),
ret_iface
);
TRACE
(
"(%p/%p)->(%s, %p)
\n
"
,
iface
,
This
,
debugstr_dmguid
(
riid
),
ret_iface
);
if
(
IsEqualIID
(
riid
,
&
IID_IUnknown
)
||
IsEqualGUID
(
riid
,
&
IID_IDirectMusicPort
))
{
if
(
IsEqualIID
(
riid
,
&
IID_IUnknown
)
||
IsEqualGUID
(
riid
,
&
IID_IDirectMusicPort
))
*
ret_iface
=
&
This
->
IDirectMusicPort_iface
;
*
ret_iface
=
&
This
->
IDirectMusicPort_iface
;
IDirectMusicPort_AddRef
((
LPDIRECTMUSICPORT
)
*
ret_iface
);
else
if
(
IsEqualGUID
(
riid
,
&
IID_IDirectMusicPortDownload
))
return
S_OK
;
}
else
if
(
IsEqualGUID
(
riid
,
&
IID_IDirectMusicPortDownload
))
{
*
ret_iface
=
&
This
->
IDirectMusicPortDownload_iface
;
*
ret_iface
=
&
This
->
IDirectMusicPortDownload_iface
;
IDirectMusicPortDownload_AddRef
((
LPDIRECTMUSICPORTDOWNLOAD
)
*
ret_iface
);
else
if
(
IsEqualGUID
(
riid
,
&
IID_IDirectMusicThru
))
return
S_OK
;
}
else
if
(
IsEqualGUID
(
riid
,
&
IID_IDirectMusicThru
))
{
*
ret_iface
=
&
This
->
IDirectMusicThru_iface
;
*
ret_iface
=
&
This
->
IDirectMusicThru_iface
;
IDirectMusicThru_AddRef
((
LPDIRECTMUSICTHRU
)
*
ret_iface
);
else
{
return
S_OK
;
WARN
(
"(%p, %s, %p): not found
\n
"
,
This
,
debugstr_dmguid
(
riid
),
ret_iface
);
*
ret_iface
=
NULL
;
return
E_NOINTERFACE
;
}
}
WARN
(
"(%p, %s, %p): not found
\n
"
,
This
,
debugstr_dmguid
(
riid
),
ret_iface
);
IUnknown_AddRef
((
IUnknown
*
)
*
ret_iface
);
return
E_NOINTERFACE
;
return
S_OK
;
}
}
static
ULONG
WINAPI
SynthPortImpl_IDirectMusicPort_AddRef
(
LPDIRECTMUSICPORT
iface
)
static
ULONG
WINAPI
SynthPortImpl_IDirectMusicPort_AddRef
(
LPDIRECTMUSICPORT
iface
)
...
...
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