mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 06:43:01 +00:00
[WDMAUD_KERNEL]
- Extend the mdl hack svn path=/trunk/; revision=47687
This commit is contained in:
parent
5b8ed5479f
commit
65169e1f54
1 changed files with 4 additions and 3 deletions
|
@ -457,15 +457,16 @@ WdmAudReadWrite(
|
||||||
Status = KsProbeStreamIrp(Irp, KSPROBE_STREAMREAD | KSPROBE_ALLOCATEMDL | KSPROBE_PROBEANDLOCK, Length);
|
Status = KsProbeStreamIrp(Irp, KSPROBE_STREAMREAD | KSPROBE_ALLOCATEMDL | KSPROBE_PROBEANDLOCK, Length);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* now free the mdl */
|
|
||||||
IoFreeMdl(Mdl);
|
|
||||||
|
|
||||||
if (!NT_SUCCESS(Status))
|
if (!NT_SUCCESS(Status))
|
||||||
{
|
{
|
||||||
DPRINT1("KsProbeStreamIrp failed with Status %x Cancel %u\n", Status, Irp->Cancel);
|
DPRINT1("KsProbeStreamIrp failed with Status %x Cancel %u\n", Status, Irp->Cancel);
|
||||||
|
Irp->MdlAddress = Mdl;
|
||||||
return SetIrpIoStatus(Irp, Status, 0);
|
return SetIrpIoStatus(Irp, Status, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* now free the mdl */
|
||||||
|
IoFreeMdl(Mdl);
|
||||||
|
|
||||||
/* get device info */
|
/* get device info */
|
||||||
DeviceInfo = (PWDMAUD_DEVICE_INFO)Irp->AssociatedIrp.SystemBuffer;
|
DeviceInfo = (PWDMAUD_DEVICE_INFO)Irp->AssociatedIrp.SystemBuffer;
|
||||||
ASSERT(DeviceInfo);
|
ASSERT(DeviceInfo);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue