winealsa: Supply FFFFFFFF for midiOutGetVolume, no garbage.

This commit is contained in:
Jörg Höhle 2010-01-28 17:39:29 +01:00 committed by Alexandre Julliard
parent c1f7faca45
commit 3af7e99ba0
1 changed files with 12 additions and 1 deletions

View File

@ -1065,6 +1065,17 @@ static DWORD modUnprepare(WORD wDevID, LPMIDIHDR lpMidiHdr, DWORD dwSize)
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]
*/
@ -1371,7 +1382,7 @@ DWORD WINAPI ALSA_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: