- Add several missing assertions documented on the MSDN page "Checked Build ASSERTs"
[reactos.git] / reactos / ntoskrnl / io / iomgr / irp.c
index 1e81e20..e7e0fb1 100644 (file)
@@ -1134,6 +1134,9 @@ IofCallDriver(IN PDEVICE_OBJECT DeviceObject,
     PDRIVER_OBJECT DriverObject;
     PIO_STACK_LOCATION StackPtr;
 
+    /* Make sure this is a valid IRP */
+    ASSERT(Irp->Type == IO_TYPE_IRP);
+
     /* Get the Driver Object */
     DriverObject = DeviceObject->DriverObject;