Author: janderwald
Date: Tue Jun 8 01:00:04 2010
New Revision: 47687
URL:
http://svn.reactos.org/svn/reactos?rev=47687&view=rev
Log:
[WDMAUD_KERNEL]
- Extend the mdl hack
Modified:
trunk/reactos/drivers/wdm/audio/legacy/wdmaud/control.c
Modified: trunk/reactos/drivers/wdm/audio/legacy/wdmaud/control.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/wdm/audio/legacy/w…
==============================================================================
--- trunk/reactos/drivers/wdm/audio/legacy/wdmaud/control.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/wdm/audio/legacy/wdmaud/control.c [iso-8859-1] Tue Jun 8
01:00:04 2010
@@ -457,14 +457,15 @@
Status = KsProbeStreamIrp(Irp, KSPROBE_STREAMREAD | KSPROBE_ALLOCATEMDL |
KSPROBE_PROBEANDLOCK, Length);
}
+ if (!NT_SUCCESS(Status))
+ {
+ DPRINT1("KsProbeStreamIrp failed with Status %x Cancel %u\n", Status,
Irp->Cancel);
+ Irp->MdlAddress = Mdl;
+ return SetIrpIoStatus(Irp, Status, 0);
+ }
+
/* now free the mdl */
IoFreeMdl(Mdl);
-
- if (!NT_SUCCESS(Status))
- {
- DPRINT1("KsProbeStreamIrp failed with Status %x Cancel %u\n", Status,
Irp->Cancel);
- return SetIrpIoStatus(Irp, Status, 0);
- }
/* get device info */
DeviceInfo = (PWDMAUD_DEVICE_INFO)Irp->AssociatedIrp.SystemBuffer;