mirror of
https://github.com/reactos/reactos.git
synced 2025-05-25 04:03:56 +00:00
[MMIXER]
- Handle failure of device enumeration - Add sanity check svn path=/trunk/; revision=47715
This commit is contained in:
parent
1bb04a5142
commit
a7e58af961
2 changed files with 9 additions and 0 deletions
|
@ -385,6 +385,8 @@ MMixerAddMixerSourceLine(
|
|||
SrcLine->Line.Target.wPid = MixerInfo->MixCaps.wPid;
|
||||
SrcLine->Line.Target.vDriverVersion = MixerInfo->MixCaps.vDriverVersion;
|
||||
InitializeListHead(&SrcLine->LineControlsExtraData);
|
||||
|
||||
ASSERT(MixerInfo->MixCaps.szPname[MAXPNAMELEN-1] == L'\0');
|
||||
wcscpy(SrcLine->Line.Target.szPname, MixerInfo->MixCaps.szPname);
|
||||
|
||||
}
|
||||
|
|
|
@ -472,6 +472,13 @@ MMixerInitialize(
|
|||
// enumeration has finished
|
||||
break;
|
||||
}
|
||||
else
|
||||
{
|
||||
DPRINT1("Failed to enumerate device %lu\n", DeviceIndex);
|
||||
|
||||
// TODO cleanup
|
||||
return Status;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue