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
e1cf94d9
Commit
e1cf94d9
authored
Feb 18, 2010
by
Jörg Höhle
Committed by
Alexandre Julliard
Feb 22, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
midimap: Have GetDevCaps error out when no MIDI device is present.
parent
bdea1466
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
midimap.c
dlls/midimap/midimap.c
+1
-0
midi.c
dlls/winmm/tests/midi.c
+6
-0
No files found.
dlls/midimap/midimap.c
View file @
e1cf94d9
...
...
@@ -470,6 +470,7 @@ static DWORD modGetDevCaps(UINT wDevID, MIDIMAPDATA* mom, LPMIDIOUTCAPSW lpMidiC
MIDICAPS_VOLUME
|
MIDICAPS_LRVOLUME
};
if
(
lpMidiCaps
==
NULL
)
return
MMSYSERR_INVALPARAM
;
if
(
!
numMidiOutPorts
)
return
MMSYSERR_BADDEVICEID
;
memcpy
(
lpMidiCaps
,
&
mappercaps
,
min
(
size
,
sizeof
(
*
lpMidiCaps
)));
return
MMSYSERR_NOERROR
;
...
...
dlls/winmm/tests/midi.c
View file @
e1cf94d9
...
...
@@ -437,7 +437,13 @@ static void test_midi_outfns(HWND hwnd)
ok
(
!
rc
,
"midiOutClose rc=%s
\n
"
,
mmsys_error
(
rc
));
}
if
(
!
ndevs
)
{
MIDIOUTCAPSA
capsA
;
skip
(
"Found no MIDI out device
\n
"
);
rc
=
midiOutGetDevCapsA
(
MIDIMAPPER
,
&
capsA
,
sizeof
(
capsA
));
/* GetDevCaps and Open must return compatible results */
ok
(
rc
==
MMSYSERR_BADDEVICEID
||
broken
(
rc
==
MMSYSERR_NODRIVER
/*nt,w2k*/
),
"midiOutGetDevCaps MAPPER with no MIDI rc=%s
\n
"
,
mmsys_error
(
rc
));
rc
=
midiOutOpen
(
&
hm
,
MIDIMAPPER
,
0
,
0
,
CALLBACK_NULL
);
if
(
rc
==
MIDIERR_INVALIDSETUP
)
todo_wine
/* Wine without snd-seq */
ok
(
rc
==
MMSYSERR_BADDEVICEID
||
broken
(
rc
==
MMSYSERR_NODRIVER
/*w2k*/
),
"midiOutOpen MAPPER with no MIDI rc=%s
\n
"
,
mmsys_error
(
rc
));
...
...
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