mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
[MMIXER] Safely handle MMixerGetDeviceNameWithComponentId failure in MMixerInitializeFilter. CORE-16611
This commit is contained in:
parent
756aa270b1
commit
355700f45a
1 changed files with 4 additions and 0 deletions
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue