mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 04:39:45 +00:00
wineoss: Supply FFFFFFFF for midiOutGetVolume, not garbage.
This commit is contained in:
parent
1e0cee6d3c
commit
8aeb9ec03a
@ -1631,6 +1631,17 @@ static DWORD modUnprepare(WORD wDevID, LPMIDIHDR lpMidiHdr, DWORD dwSize)
|
|||||||
return MMSYSERR_NOERROR;
|
return MMSYSERR_NOERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**************************************************************************
|
||||||
|
* 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]
|
* modReset [internal]
|
||||||
*/
|
*/
|
||||||
@ -1748,7 +1759,7 @@ DWORD WINAPI OSS_modMessage(UINT wDevID, UINT wMsg, DWORD_PTR dwUser,
|
|||||||
case MODM_GETNUMDEVS:
|
case MODM_GETNUMDEVS:
|
||||||
return MODM_NumDevs;
|
return MODM_NumDevs;
|
||||||
case MODM_GETVOLUME:
|
case MODM_GETVOLUME:
|
||||||
return 0;
|
return modGetVolume(wDevID, (DWORD*)dwParam1);
|
||||||
case MODM_SETVOLUME:
|
case MODM_SETVOLUME:
|
||||||
return 0;
|
return 0;
|
||||||
case MODM_RESET:
|
case MODM_RESET:
|
||||||
|
Loading…
Reference in New Issue
Block a user