+sanity check of NULL IoGetCurrentIrpStackLocation(Irp)->FileObject
authorshort <>
Wed, 26 Mar 2003 00:52:16 +0000 (00:52 +0000)
committershort <>
Wed, 26 Mar 2003 00:52:16 +0000 (00:52 +0000)
ntoskrnl/io/irp.c

index e967145..8b54d39 100644 (file)
@@ -348,6 +348,8 @@ IoIsOperationSynchronous(IN PIRP Irp)
 
   /* Check the FILE_OBJECT's flags first. */
   FileObject = IoGetCurrentIrpStackLocation(Irp)->FileObject;
+  if (FileObject == NULL)
+    KeBugCheck(0);
   if (!(FO_SYNCHRONOUS_IO & FileObject->Flags))
     {
       /* Check IRP's flags. */