mirror of
https://github.com/reactos/reactos.git
synced 2025-04-27 17:10:22 +00:00
[WDMAUD]
- fix a bug in WdmAudControlDeviceType - clear handle value when opening device interface key fails svn path=/trunk/; revision=72979
This commit is contained in:
parent
39544b234b
commit
cad3120307
2 changed files with 8 additions and 2 deletions
|
@ -55,11 +55,11 @@ WdmAudControlDeviceType(
|
||||||
}
|
}
|
||||||
else if (DeviceInfo->DeviceType == WAVE_OUT_DEVICE_TYPE)
|
else if (DeviceInfo->DeviceType == WAVE_OUT_DEVICE_TYPE)
|
||||||
{
|
{
|
||||||
Result = WdmAudGetWaveInDeviceCount();
|
Result = WdmAudGetWaveOutDeviceCount();
|
||||||
}
|
}
|
||||||
else if (DeviceInfo->DeviceType == WAVE_IN_DEVICE_TYPE)
|
else if (DeviceInfo->DeviceType == WAVE_IN_DEVICE_TYPE)
|
||||||
{
|
{
|
||||||
Result = WdmAudGetWaveOutDeviceCount();
|
Result = WdmAudGetWaveInDeviceCount();
|
||||||
}
|
}
|
||||||
else if (DeviceInfo->DeviceType == MIDI_IN_DEVICE_TYPE)
|
else if (DeviceInfo->DeviceType == MIDI_IN_DEVICE_TYPE)
|
||||||
{
|
{
|
||||||
|
|
|
@ -271,6 +271,12 @@ Enum(
|
||||||
|
|
||||||
/* open device interface key */
|
/* open device interface key */
|
||||||
Status = IoOpenDeviceInterfaceRegistryKey(&KeyName, GENERIC_READ | GENERIC_WRITE, OutKey);
|
Status = IoOpenDeviceInterfaceRegistryKey(&KeyName, GENERIC_READ | GENERIC_WRITE, OutKey);
|
||||||
|
|
||||||
|
if (!NT_SUCCESS(Status))
|
||||||
|
{
|
||||||
|
*OutKey = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
if (!NT_SUCCESS(Status))
|
if (!NT_SUCCESS(Status))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue