winmm: Also initialize sound device thread in mixerGetControlDetails.
Fixed volume control in EveryonePiano.
This commit is contained in:
parent
0b273d279b
commit
b3ebdd904c
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue