IoInitializeIrp(): Fixed missing intitialization of Irp->Type
authorshort <>
Fri, 22 Nov 2002 02:25:22 +0000 (02:25 +0000)
committershort <>
Fri, 22 Nov 2002 02:25:22 +0000 (02:25 +0000)
ntoskrnl/io/irp.c

index 8931c6d..ec4cdee 100644 (file)
@@ -93,6 +93,7 @@ IoInitializeIrp(PIRP Irp,
   assert(Irp != NULL);
 
   memset(Irp, 0, PacketSize);
+  Irp->Type = IO_TYPE_IRP;
   Irp->Size = PacketSize;
   Irp->StackCount = StackSize;
   Irp->CurrentLocation = StackSize;