Commit 3c070b22 authored by Dan Kegel's avatar Dan Kegel Committed by Alexandre Julliard

winealsa.drv: Don't return garbage if can't find active channel.

parent 95fbd7f4
......@@ -985,6 +985,12 @@ static DWORD MIX_GetControlDetails(UINT wDevID, LPMIXERCONTROLDETAILS mctrld, DW
break;
}
if (chn > SND_MIXER_SCHN_LAST)
{
TRACE("can't find active channel\n");
return MMSYSERR_INVALPARAM; /* fixme: what's right error? */
}
mcdb->fValue = !ival;
TRACE("=> %s\n", mcdb->fValue ? "on" : "off");
return MMSYSERR_NOERROR;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment