[MMIXER] Safely handle MMixerGetDeviceNameWithComponentId failure in MMixerInitializeFilter. CORE-16611

This commit is contained in:
Thomas Faber 2020-02-01 12:40:23 +01:00
parent 756aa270b1
commit 355700f45a
No known key found for this signature in database
GPG key ID: 076E7C3D44720826

View file

@ -1559,6 +1559,10 @@ MMixerInitializeFilter(
{
/* try get name with component id */
Status = MMixerGetDeviceNameWithComponentId(MixerContext, MixerData->hDevice, MixerInfo->MixCaps.szPname);
if (Status != MM_STATUS_SUCCESS)
{
MixerInfo->MixCaps.szPname[0] = L'\0';
}
}
/* initialize line list */