winmm: Correct check for MIXER_GETLINECONTROLSF_ONEBYTYPE in mixerGetLineControlsA.

This commit is contained in:
Aric Stewart 2007-11-29 13:34:06 +09:00 committed by Alexandre Julliard
parent 15e1c57141
commit 35ecb1b6ee
1 changed files with 1 additions and 2 deletions

View File

@ -521,7 +521,7 @@ UINT WINAPI mixerGetLineControlsA(HMIXEROBJ hmix, LPMIXERLINECONTROLSA lpmlcA,
/* Debugging on Windows shows for MIXER_GETLINECONTROLSF_ONEBYTYPE only, /* Debugging on Windows shows for MIXER_GETLINECONTROLSF_ONEBYTYPE only,
the control count is assumed to be 1 - This is relied upon by a game, the control count is assumed to be 1 - This is relied upon by a game,
"Dynomite Deluze" */ "Dynomite Deluze" */
if (MIXER_GETLINECONTROLSF_ONEBYTYPE == fdwControls) { if (MIXER_GETLINECONTROLSF_ONEBYTYPE == (fdwControls & MIXER_GETLINECONTROLSF_QUERYMASK)) {
mlcW.cControls = 1; mlcW.cControls = 1;
} else { } else {
mlcW.cControls = lpmlcA->cControls; mlcW.cControls = lpmlcA->cControls;
@ -536,7 +536,6 @@ UINT WINAPI mixerGetLineControlsA(HMIXEROBJ hmix, LPMIXERLINECONTROLSA lpmlcA,
lpmlcA->dwLineID = mlcW.dwLineID; lpmlcA->dwLineID = mlcW.dwLineID;
lpmlcA->u.dwControlID = mlcW.u.dwControlID; lpmlcA->u.dwControlID = mlcW.u.dwControlID;
lpmlcA->u.dwControlType = mlcW.u.dwControlType; lpmlcA->u.dwControlType = mlcW.u.dwControlType;
lpmlcA->cControls = mlcW.cControls;
for (i = 0; i < mlcW.cControls; i++) { for (i = 0; i < mlcW.cControls; i++) {
lpmlcA->pamxctrl[i].cbStruct = sizeof(MIXERCONTROLA); lpmlcA->pamxctrl[i].cbStruct = sizeof(MIXERCONTROLA);