mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 15:36:04 +00:00
added code to initialize CurrentIrp in DeviceObject.
svn path=/trunk/; revision=34
This commit is contained in:
parent
b903d86810
commit
ca01965c67
1 changed files with 11 additions and 1 deletions
|
@ -38,8 +38,13 @@ VOID IoStartNextPacketByKey(PDEVICE_OBJECT DeviceObject,
|
||||||
if (entry!=NULL)
|
if (entry!=NULL)
|
||||||
{
|
{
|
||||||
Irp = CONTAINING_RECORD(entry,IRP,Tail.Overlay.DeviceQueueEntry);
|
Irp = CONTAINING_RECORD(entry,IRP,Tail.Overlay.DeviceQueueEntry);
|
||||||
|
DeviceObject->CurrentIrp = Irp;
|
||||||
DeviceObject->DriverObject->DriverStartIo(DeviceObject,Irp);
|
DeviceObject->DriverObject->DriverStartIo(DeviceObject,Irp);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
DeviceObject->CurrentIrp = NULL;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
VOID IoStartNextPacket(PDEVICE_OBJECT DeviceObject, BOOLEAN Cancelable)
|
VOID IoStartNextPacket(PDEVICE_OBJECT DeviceObject, BOOLEAN Cancelable)
|
||||||
|
@ -63,9 +68,13 @@ VOID IoStartNextPacket(PDEVICE_OBJECT DeviceObject, BOOLEAN Cancelable)
|
||||||
if (entry!=NULL)
|
if (entry!=NULL)
|
||||||
{
|
{
|
||||||
Irp = CONTAINING_RECORD(entry,IRP,Tail.Overlay.DeviceQueueEntry);
|
Irp = CONTAINING_RECORD(entry,IRP,Tail.Overlay.DeviceQueueEntry);
|
||||||
|
DeviceObject->CurrentIrp = Irp;
|
||||||
DeviceObject->DriverObject->DriverStartIo(DeviceObject,Irp);
|
DeviceObject->DriverObject->DriverStartIo(DeviceObject,Irp);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
DeviceObject->CurrentIrp = NULL;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
VOID IoStartPacket(PDEVICE_OBJECT DeviceObject,
|
VOID IoStartPacket(PDEVICE_OBJECT DeviceObject,
|
||||||
|
@ -109,6 +118,7 @@ VOID IoStartPacket(PDEVICE_OBJECT DeviceObject,
|
||||||
|
|
||||||
if (!stat)
|
if (!stat)
|
||||||
{
|
{
|
||||||
|
DeviceObject->CurrentIrp = Irp;
|
||||||
DeviceObject->DriverObject->DriverStartIo(DeviceObject,Irp);
|
DeviceObject->DriverObject->DriverStartIo(DeviceObject,Irp);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue