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
8aeb9ec0
Commit
8aeb9ec0
authored
Jan 30, 2010
by
Jörg Höhle
Committed by
Alexandre Julliard
May 05, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wineoss: Supply FFFFFFFF for midiOutGetVolume, not garbage.
parent
1e0cee6d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletion
+12
-1
midi.c
dlls/wineoss.drv/midi.c
+12
-1
No files found.
dlls/wineoss.drv/midi.c
View file @
8aeb9ec0
...
...
@@ -1632,6 +1632,17 @@ static DWORD modUnprepare(WORD wDevID, LPMIDIHDR lpMidiHdr, DWORD dwSize)
}
/**************************************************************************
* modGetVolume [internal]
*/
static
DWORD
modGetVolume
(
WORD
wDevID
,
DWORD
*
lpdwVolume
)
{
if
(
!
lpdwVolume
)
return
MMSYSERR_INVALPARAM
;
if
(
wDevID
>=
MODM_NumDevs
)
return
MMSYSERR_BADDEVICEID
;
*
lpdwVolume
=
0xFFFFFFFF
;
return
(
MidiOutDev
[
wDevID
].
caps
.
dwSupport
&
MIDICAPS_VOLUME
)
?
0
:
MMSYSERR_NOTSUPPORTED
;
}
/**************************************************************************
* modReset [internal]
*/
static
DWORD
modReset
(
WORD
wDevID
)
...
...
@@ -1748,7 +1759,7 @@ DWORD WINAPI OSS_modMessage(UINT wDevID, UINT wMsg, DWORD_PTR dwUser,
case
MODM_GETNUMDEVS
:
return
MODM_NumDevs
;
case
MODM_GETVOLUME
:
return
0
;
return
modGetVolume
(
wDevID
,
(
DWORD
*
)
dwParam1
)
;
case
MODM_SETVOLUME
:
return
0
;
case
MODM_RESET
:
...
...
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