winmm: Correct check for MIXER_GETLINECONTROLSF_ONEBYTYPE in mixerGetLineControlsA.
This commit is contained in:
parent
15e1c57141
commit
35ecb1b6ee
|
@ -521,7 +521,7 @@ UINT WINAPI mixerGetLineControlsA(HMIXEROBJ hmix, LPMIXERLINECONTROLSA lpmlcA,
|
|||
/* Debugging on Windows shows for MIXER_GETLINECONTROLSF_ONEBYTYPE only,
|
||||
the control count is assumed to be 1 - This is relied upon by a game,
|
||||
"Dynomite Deluze" */
|
||||
if (MIXER_GETLINECONTROLSF_ONEBYTYPE == fdwControls) {
|
||||
if (MIXER_GETLINECONTROLSF_ONEBYTYPE == (fdwControls & MIXER_GETLINECONTROLSF_QUERYMASK)) {
|
||||
mlcW.cControls = 1;
|
||||
} else {
|
||||
mlcW.cControls = lpmlcA->cControls;
|
||||
|
@ -536,7 +536,6 @@ UINT WINAPI mixerGetLineControlsA(HMIXEROBJ hmix, LPMIXERLINECONTROLSA lpmlcA,
|
|||
lpmlcA->dwLineID = mlcW.dwLineID;
|
||||
lpmlcA->u.dwControlID = mlcW.u.dwControlID;
|
||||
lpmlcA->u.dwControlType = mlcW.u.dwControlType;
|
||||
lpmlcA->cControls = mlcW.cControls;
|
||||
|
||||
for (i = 0; i < mlcW.cControls; i++) {
|
||||
lpmlcA->pamxctrl[i].cbStruct = sizeof(MIXERCONTROLA);
|
||||
|
|
Loading…
Reference in New Issue