winmm: Only fill in the MIXERLINEA struct if the call to mixerGetLineInfoW succeeds.
This commit is contained in:
parent
b2be840e47
commit
5798b95a51
|
@ -652,6 +652,8 @@ UINT WINAPI mixerGetLineInfoA(HMIXEROBJ hmix, LPMIXERLINEA lpmliA,
|
|||
|
||||
ret = mixerGetLineInfoW(hmix, &mliW, fdwInfo);
|
||||
|
||||
if(ret == MMSYSERR_NOERROR)
|
||||
{
|
||||
lpmliA->dwDestination = mliW.dwDestination;
|
||||
lpmliA->dwSource = mliW.dwSource;
|
||||
lpmliA->dwLineID = mliW.dwLineID;
|
||||
|
@ -672,7 +674,7 @@ UINT WINAPI mixerGetLineInfoA(HMIXEROBJ hmix, LPMIXERLINEA lpmliA,
|
|||
lpmliA->Target.vDriverVersion = mliW.Target.vDriverVersion;
|
||||
WideCharToMultiByte( CP_ACP, 0, mliW.Target.szPname, -1, lpmliA->Target.szPname,
|
||||
sizeof(lpmliA->Target.szPname), NULL, NULL );
|
||||
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue