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
8575935f
Commit
8575935f
authored
Nov 08, 2009
by
Eric Pouech
Committed by
Alexandre Julliard
Nov 09, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mmsystem.dll16: Correctly send messages up to winmm.dll.
Spotted by Christian Costa.
parent
a116f78d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
4 deletions
+36
-4
message16.c
dlls/mmsystem.dll16/message16.c
+36
-4
No files found.
dlls/mmsystem.dll16/message16.c
View file @
8575935f
...
...
@@ -979,10 +979,42 @@ DWORD MMSYSTDRV_Message(void* h, UINT msg, DWORD_PTR param1, DWORD_PTR param2)
switch
(
thunk
->
kind
)
{
case
MMSYSTDRV_MIXER
:
ret
=
mixerMessage
(
h
,
msg
,
param1
,
param2
);
break
;
case
MMSYSTDRV_MIDIIN
:
ret
=
midiInMessage
(
h
,
msg
,
param1
,
param2
);
break
;
case
MMSYSTDRV_MIDIOUT
:
ret
=
midiOutMessage
(
h
,
msg
,
param1
,
param2
);
break
;
case
MMSYSTDRV_WAVEIN
:
ret
=
waveInMessage
(
h
,
msg
,
param1
,
param2
);
break
;
case
MMSYSTDRV_WAVEOUT
:
ret
=
waveOutMessage
(
h
,
msg
,
param1
,
param2
);
break
;
case
MMSYSTDRV_MIDIIN
:
switch
(
msg
)
{
case
MIDM_ADDBUFFER
:
ret
=
midiInAddBuffer
(
h
,
(
LPMIDIHDR
)
param1
,
param2
);
break
;
case
MIDM_PREPARE
:
ret
=
midiInPrepareHeader
(
h
,
(
LPMIDIHDR
)
param1
,
param2
);
break
;
case
MIDM_UNPREPARE
:
ret
=
midiInUnprepareHeader
(
h
,
(
LPMIDIHDR
)
param1
,
param2
);
break
;
default:
ret
=
midiInMessage
(
h
,
msg
,
param1
,
param2
);
break
;
}
break
;
case
MMSYSTDRV_MIDIOUT
:
switch
(
msg
)
{
case
MODM_PREPARE
:
ret
=
midiOutPrepareHeader
(
h
,
(
LPMIDIHDR
)
param1
,
param2
);
break
;
case
MODM_UNPREPARE
:
ret
=
midiOutUnprepareHeader
(
h
,
(
LPMIDIHDR
)
param1
,
param2
);
break
;
case
MODM_LONGDATA
:
ret
=
midiOutLongMsg
(
h
,
(
LPMIDIHDR
)
param1
,
param2
);
break
;
default:
ret
=
midiOutMessage
(
h
,
msg
,
param1
,
param2
);
break
;
}
break
;
case
MMSYSTDRV_WAVEIN
:
switch
(
msg
)
{
case
WIDM_ADDBUFFER
:
ret
=
waveInAddBuffer
(
h
,
(
LPWAVEHDR
)
param1
,
param2
);
break
;
case
WIDM_PREPARE
:
ret
=
waveInPrepareHeader
(
h
,
(
LPWAVEHDR
)
param1
,
param2
);
break
;
case
WIDM_UNPREPARE
:
ret
=
waveInUnprepareHeader
(
h
,
(
LPWAVEHDR
)
param1
,
param2
);
break
;
default:
ret
=
waveInMessage
(
h
,
msg
,
param1
,
param2
);
break
;
}
break
;
case
MMSYSTDRV_WAVEOUT
:
switch
(
msg
)
{
case
WODM_PREPARE
:
ret
=
waveOutPrepareHeader
(
h
,
(
LPWAVEHDR
)
param1
,
param2
);
break
;
case
WODM_UNPREPARE
:
ret
=
waveOutUnprepareHeader
(
h
,
(
LPWAVEHDR
)
param1
,
param2
);
break
;
case
WODM_WRITE
:
ret
=
waveOutWrite
(
h
,
(
LPWAVEHDR
)
param1
,
param2
);
break
;
default:
ret
=
waveOutMessage
(
h
,
msg
,
param1
,
param2
);
break
;
}
break
;
default:
ret
=
MMSYSERR_INVALHANDLE
;
break
;
/* should never be reached */
}
if
(
map
==
MMSYSTEM_MAP_OKMEM
)
...
...
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