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
c2224ea8
Commit
c2224ea8
authored
Sep 29, 2010
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winmm/tests: Skip tests if MIDI cannot be opened.
parent
5db7d595
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
midi.c
dlls/winmm/tests/midi.c
+10
-0
No files found.
dlls/winmm/tests/midi.c
View file @
c2224ea8
...
...
@@ -227,6 +227,11 @@ static void test_midiOut_device(UINT udev, HWND hwnd)
rc
=
midiOutOpen
(
&
hm
,
udev
,
(
DWORD_PTR
)
hwnd
,
(
DWORD_PTR
)
MYCBINST
,
CALLBACK_WINDOW
);
else
rc
=
midiOutOpen
(
&
hm
,
udev
,
(
DWORD_PTR
)
callback_func
,
(
DWORD_PTR
)
MYCBINST
,
CALLBACK_FUNCTION
);
if
(
rc
==
MMSYSERR_NOTSUPPORTED
)
{
skip
(
"MIDI out not supported
\n
"
);
return
;
}
ok
(
!
rc
,
"midiOutOpen(dev=%d) rc=%s
\n
"
,
udev
,
mmsys_error
(
rc
));
if
(
rc
)
return
;
...
...
@@ -382,6 +387,11 @@ static void test_midiStream(UINT udev, HWND hwnd)
rc
=
midiStreamOpen
(
&
hm
,
&
udev
,
1
,
(
DWORD_PTR
)
hwnd
,
(
DWORD_PTR
)
MYCBINST
,
CALLBACK_WINDOW
);
else
rc
=
midiStreamOpen
(
&
hm
,
&
udev
,
1
,
(
DWORD_PTR
)
callback_func
,
(
DWORD_PTR
)
MYCBINST
,
CALLBACK_FUNCTION
);
if
(
rc
==
MMSYSERR_NOTSUPPORTED
)
{
skip
(
"MIDI stream not supported
\n
"
);
return
;
}
ok
(
!
rc
,
"midiStreamOpen(dev=%d) rc=%s
\n
"
,
udev
,
mmsys_error
(
rc
));
if
(
rc
)
return
;
...
...
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