Catch really weird scenario where we don't have a File Object on our IRP Stack. Added...
authorAlex Ionescu <aionescu@gmail.com>
Mon, 14 Nov 2005 22:04:30 +0000 (22:04 +0000)
committerAlex Ionescu <aionescu@gmail.com>
Mon, 14 Nov 2005 22:04:30 +0000 (22:04 +0000)
svn path=/trunk/; revision=19230

reactos/drivers/fs/np/rw.c

index dfd7a2a..0676d42 100644 (file)
@@ -529,6 +529,8 @@ NpfsRead(IN PDEVICE_OBJECT DeviceObject,
      }
      Irp->IoStatus.Information = Information;
      Irp->IoStatus.Status = Status;
+     
+     ASSERT(IoGetCurrentIrpStackLocation(Irp)->FileObject != NULL);
 
      if (IoIsOperationSynchronous(Irp))
      {