mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 20:35:43 +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 */
|
/* try get name with component id */
|
||||||
Status = MMixerGetDeviceNameWithComponentId(MixerContext, MixerData->hDevice, MixerInfo->MixCaps.szPname);
|
Status = MMixerGetDeviceNameWithComponentId(MixerContext, MixerData->hDevice, MixerInfo->MixCaps.szPname);
|
||||||
|
if (Status != MM_STATUS_SUCCESS)
|
||||||
|
{
|
||||||
|
MixerInfo->MixCaps.szPname[0] = L'\0';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* initialize line list */
|
/* initialize line list */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue