From 6d29129c8fe67311201de09cca3d5e5651d5d29e Mon Sep 17 00:00:00 2001 From: Johannes Anderwald Date: Sun, 12 Jul 2009 15:44:33 +0000 Subject: [PATCH] [WDMAUD_KERNEL] -? Hey Arch, don't be so picky when something goes wrong. - Fix enumeration of wave out / in devices for Vmware adapter - Playback still hangs svn path=/trunk/; revision=41935 --- reactos/drivers/wdm/audio/legacy/wdmaud/control.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/reactos/drivers/wdm/audio/legacy/wdmaud/control.c b/reactos/drivers/wdm/audio/legacy/wdmaud/control.c index 2f9507c1c15..ee41c64d280 100644 --- a/reactos/drivers/wdm/audio/legacy/wdmaud/control.c +++ b/reactos/drivers/wdm/audio/legacy/wdmaud/control.c @@ -375,14 +375,11 @@ WdmAudControlDeviceType( } } - - if (NT_SUCCESS(Status)) - DeviceInfo->DeviceCount = Result; - else - DeviceInfo->DeviceCount = 0; + /* store result count */ + DeviceInfo->DeviceCount = Result; DPRINT1("WdmAudControlDeviceType Status %x Devices %u\n", Status, DeviceInfo->DeviceCount); - return SetIrpIoStatus(Irp, Status, sizeof(WDMAUD_DEVICE_INFO)); + return SetIrpIoStatus(Irp, STATUS_SUCCESS, sizeof(WDMAUD_DEVICE_INFO)); } NTSTATUS