reduce diff to trunk

svn path=/branches/ros-amd64-bringup/; revision=46421
This commit is contained in:
Timo Kreuzer 2010-03-25 02:58:46 +00:00
parent 4a02701022
commit 0fc116b80c
2 changed files with 13 additions and 13 deletions

View file

@ -151,7 +151,7 @@ WdmAudIoctlClose(
{ {
ObDereferenceObject(ClientInfo->hPins[Index].NotifyEvent); ObDereferenceObject(ClientInfo->hPins[Index].NotifyEvent);
ClientInfo->hPins[Index].NotifyEvent = NULL; ClientInfo->hPins[Index].NotifyEvent = NULL;
} }
} }
} }

View file

@ -228,25 +228,25 @@ WdmAudCleanup(
KeReleaseSpinLock(&DeviceExtension->Lock, OldIrql); KeReleaseSpinLock(&DeviceExtension->Lock, OldIrql);
/* check if all audio pins have been closed */ /* check if all audio pins have been closed */
for (Index = 0; Index < pClient->NumPins; Index++) for (Index = 0; Index < pClient->NumPins; Index++)
{ {
DPRINT("Index %u Pin %p Type %x\n", Index, pClient->hPins[Index].Handle, pClient->hPins[Index].Type); 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) if (pClient->hPins[Index].Handle && pClient->hPins[Index].Type != MIXER_DEVICE_TYPE)
{ {
/* found an still open audio pin */ /* found an still open audio pin */
ZwClose(pClient->hPins[Index].Handle); ZwClose(pClient->hPins[Index].Handle);
} }
} }
/* free pin array */ /* free pin array */
if (pClient->hPins) if (pClient->hPins)
ExFreePool(pClient->hPins); ExFreePool(pClient->hPins);
/* free client context struct */ /* free client context struct */
ExFreePool(pClient); ExFreePool(pClient);
/* clear old client pointer */ /* clear old client pointer */
IoStack->FileObject->FsContext = NULL; IoStack->FileObject->FsContext = NULL;
/* complete request */ /* complete request */
Irp->IoStatus.Status = STATUS_SUCCESS; Irp->IoStatus.Status = STATUS_SUCCESS;