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
4a823fdf
Commit
4a823fdf
authored
Sep 14, 2012
by
Jörg Höhle
Committed by
Alexandre Julliard
Oct 08, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mciseq: Map MMSYSERR_* to MCIERR_* error codes.
parent
310b2a51
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
2 deletions
+18
-2
mcimidi.c
dlls/mciseq/mcimidi.c
+18
-2
No files found.
dlls/mciseq/mcimidi.c
View file @
4a823fdf
...
...
@@ -86,6 +86,22 @@ typedef struct tagWINE_MCIMIDI {
* MCI MIDI implementation *
*======================================================================*/
static
DWORD
mmr2mci
(
DWORD
ret
)
{
switch
(
ret
)
{
case
MMSYSERR_ALLOCATED
:
return
MCIERR_SEQ_PORT_INUSE
;
case
MMSYSERR_NOMEM
:
return
MCIERR_OUT_OF_MEMORY
;
case
MMSYSERR_BADDEVICEID
:
/* wine*.drv disabled */
return
MCIERR_SEQ_PORT_NONEXISTENT
;
case
MIDIERR_INVALIDSETUP
:
/* from midimap.dll without snd-seq module */
return
MCIERR_SEQ_PORT_MAPNODEVICE
;
default:
return
ret
;
}
}
static
DWORD
MIDI_mciResume
(
WINE_MCIMIDI
*
wmm
,
DWORD
dwFlags
,
LPMCI_GENERIC_PARMS
lpParms
);
/**************************************************************************
...
...
@@ -862,7 +878,7 @@ static DWORD MIDI_player(WINE_MCIMIDI* wmm, DWORD dwFlags)
dwRet
=
midiOutOpen
((
LPHMIDIOUT
)
&
wmm
->
hMidi
,
wmm
->
wPort
,
0L
,
0L
,
CALLBACK_NULL
);
if
(
dwRet
!=
MMSYSERR_NOERROR
)
{
return
dwRet
;
return
mmr2mci
(
dwRet
)
;
}
wmm
->
dwPulse
=
0
;
...
...
@@ -1071,7 +1087,7 @@ static DWORD MIDI_player(WINE_MCIMIDI* wmm, DWORD dwFlags)
/* Let the potentially asynchronous commands support FAILURE notification. */
if
(
oldcb
)
mciDriverNotify
(
oldcb
,
wmm
->
wDevID
,
dwRet
?
MCI_NOTIFY_FAILURE
:
MCI_NOTIFY_SUCCESSFUL
);
return
dwRet
;
return
mmr2mci
(
dwRet
)
;
}
static
DWORD
CALLBACK
MIDI_Starter
(
void
*
ptr
)
...
...
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