From 0fc116b80c1872775da0f5d6924b2df4c4955ad1 Mon Sep 17 00:00:00 2001 From: Timo Kreuzer Date: Thu, 25 Mar 2010 02:58:46 +0000 Subject: [PATCH] reduce diff to trunk svn path=/branches/ros-amd64-bringup/; revision=46421 --- .../drivers/wdm/audio/legacy/wdmaud/control.c | 2 +- .../drivers/wdm/audio/legacy/wdmaud/entry.c | 24 +++++++++---------- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/reactos/drivers/wdm/audio/legacy/wdmaud/control.c b/reactos/drivers/wdm/audio/legacy/wdmaud/control.c index 631b8619b55..07e9ef846d2 100644 --- a/reactos/drivers/wdm/audio/legacy/wdmaud/control.c +++ b/reactos/drivers/wdm/audio/legacy/wdmaud/control.c @@ -151,7 +151,7 @@ WdmAudIoctlClose( { ObDereferenceObject(ClientInfo->hPins[Index].NotifyEvent); ClientInfo->hPins[Index].NotifyEvent = NULL; - } + } } } diff --git a/reactos/drivers/wdm/audio/legacy/wdmaud/entry.c b/reactos/drivers/wdm/audio/legacy/wdmaud/entry.c index 572a97258c9..20421ead5e4 100644 --- a/reactos/drivers/wdm/audio/legacy/wdmaud/entry.c +++ b/reactos/drivers/wdm/audio/legacy/wdmaud/entry.c @@ -228,25 +228,25 @@ WdmAudCleanup( KeReleaseSpinLock(&DeviceExtension->Lock, OldIrql); /* check if all audio pins have been closed */ - for (Index = 0; Index < pClient->NumPins; Index++) - { - DPRINT("Index %u Pin %p Type %x\n", Index, pClient->hPins[Index].Handle, pClient->hPins[Index].Type); - if (pClient->hPins[Index].Handle && pClient->hPins[Index].Type != MIXER_DEVICE_TYPE) - { + for (Index = 0; Index < pClient->NumPins; Index++) + { + DPRINT("Index %u Pin %p Type %x\n", Index, pClient->hPins[Index].Handle, pClient->hPins[Index].Type); + if (pClient->hPins[Index].Handle && pClient->hPins[Index].Type != MIXER_DEVICE_TYPE) + { /* found an still open audio pin */ - ZwClose(pClient->hPins[Index].Handle); - } - } + ZwClose(pClient->hPins[Index].Handle); + } + } /* free pin array */ - if (pClient->hPins) - ExFreePool(pClient->hPins); + if (pClient->hPins) + ExFreePool(pClient->hPins); /* free client context struct */ - ExFreePool(pClient); + ExFreePool(pClient); /* clear old client pointer */ - IoStack->FileObject->FsContext = NULL; + IoStack->FileObject->FsContext = NULL; /* complete request */ Irp->IoStatus.Status = STATUS_SUCCESS;