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
31bfc380
Commit
31bfc380
authored
Mar 29, 2012
by
Christian Costa
Committed by
Alexandre Julliard
Apr 03, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dmusic: Check return codes and display name from port caps when enumerating microsoft synthetizer.
parent
f13806e1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
6 deletions
+10
-6
dmusic.c
dlls/dmusic/dmusic.c
+10
-6
No files found.
dlls/dmusic/dmusic.c
View file @
31bfc380
...
@@ -138,12 +138,16 @@ static HRESULT WINAPI IDirectMusic8Impl_EnumPort(LPDIRECTMUSIC8 iface, DWORD ind
...
@@ -138,12 +138,16 @@ static HRESULT WINAPI IDirectMusic8Impl_EnumPort(LPDIRECTMUSIC8 iface, DWORD ind
if
(
index
==
(
nb_midi_in
+
nb_midi_out
+
1
))
if
(
index
==
(
nb_midi_in
+
nb_midi_out
+
1
))
{
{
IDirectMusicSynth8
*
synth
;
IDirectMusicSynth8
*
synth
=
NULL
;
TRACE
(
"Enumerating port: 'Microsoft Software Synthesizer'
\n
"
);
HRESULT
hr
;
CoCreateInstance
(
&
CLSID_DirectMusicSynth
,
NULL
,
CLSCTX_INPROC_SERVER
,
&
IID_IDirectMusicSynth8
,
(
void
**
)
&
synth
);
hr
=
CoCreateInstance
(
&
CLSID_DirectMusicSynth
,
NULL
,
CLSCTX_INPROC_SERVER
,
&
IID_IDirectMusicSynth8
,
(
void
**
)
&
synth
);
IDirectMusicSynth8_GetPortCaps
(
synth
,
port_caps
);
if
(
SUCCEEDED
(
hr
))
IDirectMusicSynth8_Release
(
synth
);
IDirectMusicSynth8_GetPortCaps
(
synth
,
port_caps
);
return
S_OK
;
if
(
SUCCEEDED
(
hr
))
TRACE
(
"Enumerating port: %s
\n
"
,
debugstr_w
(
port_caps
->
wszDescription
));
if
(
synth
)
IDirectMusicSynth8_Release
(
synth
);
return
hr
;
}
}
return
S_FALSE
;
return
S_FALSE
;
...
...
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