winmm: Also initialize sound device thread in mixerGetControlDetails.

Fixed volume control in EveryonePiano.
This commit is contained in:
Qian Hong 2014-09-30 00:25:36 +08:00 committed by Alexandre Julliard
parent 0b273d279b
commit b3ebdd904c
1 changed files with 1 additions and 3 deletions

View File

@ -3850,12 +3850,10 @@ UINT WINAPI mixerGetControlDetailsW(HMIXEROBJ hmix, LPMIXERCONTROLDETAILS lpmcdW
DWORD fdwDetails)
{
WINMM_ControlDetails details;
HRESULT hr;
TRACE("(%p, %p, %x)\n", hmix, lpmcdW, fdwDetails);
hr = WINMM_InitMMDevices();
if(FAILED(hr))
if(!WINMM_StartDevicesThread())
return MMSYSERR_NODRIVER;
if(!lpmcdW || !lpmcdW->paDetails)