Author: tkreuzer Date: Thu Mar 25 03:58:46 2010 New Revision: 46421
URL: http://svn.reactos.org/svn/reactos?rev=46421&view=rev Log: reduce diff to trunk
Modified: branches/ros-amd64-bringup/reactos/drivers/wdm/audio/legacy/wdmaud/control.c branches/ros-amd64-bringup/reactos/drivers/wdm/audio/legacy/wdmaud/entry.c
Modified: branches/ros-amd64-bringup/reactos/drivers/wdm/audio/legacy/wdmaud/control.c URL: http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/driver... ============================================================================== --- branches/ros-amd64-bringup/reactos/drivers/wdm/audio/legacy/wdmaud/control.c [iso-8859-1] (original) +++ branches/ros-amd64-bringup/reactos/drivers/wdm/audio/legacy/wdmaud/control.c [iso-8859-1] Thu Mar 25 03:58:46 2010 @@ -151,7 +151,7 @@ { ObDereferenceObject(ClientInfo->hPins[Index].NotifyEvent); ClientInfo->hPins[Index].NotifyEvent = NULL; - } + } } }
Modified: branches/ros-amd64-bringup/reactos/drivers/wdm/audio/legacy/wdmaud/entry.c URL: http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/driver... ============================================================================== --- branches/ros-amd64-bringup/reactos/drivers/wdm/audio/legacy/wdmaud/entry.c [iso-8859-1] (original) +++ branches/ros-amd64-bringup/reactos/drivers/wdm/audio/legacy/wdmaud/entry.c [iso-8859-1] Thu Mar 25 03:58:46 2010 @@ -228,25 +228,25 @@ 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;