[NTOS:IO]
authorDmitry Chapyshev <dmitry@reactos.org>
Sat, 3 Sep 2016 13:26:27 +0000 (13:26 +0000)
committerDmitry Chapyshev <dmitry@reactos.org>
Sat, 3 Sep 2016 13:26:27 +0000 (13:26 +0000)
- It is paged code
- We do not compare with TRUE

svn path=/trunk/; revision=72545

reactos/ntoskrnl/io/iomgr/file.c

index 4344879..0fa6d43 100644 (file)
@@ -2089,7 +2089,7 @@ IopQueryAttributesFile(IN POBJECT_ATTRIBUTES ObjectAttributes,
                                 FILE_READ_ATTRIBUTES,
                                 &OpenPacket,
                                 &Handle);
-    if (OpenPacket.ParseCheck != TRUE)
+    if (OpenPacket.ParseCheck == FALSE)
     {
         /* Parse failed */
         DPRINT("IopQueryAttributesFile failed for '%wZ' with 0x%lx\n",
@@ -2181,6 +2181,7 @@ IopCreateFile(OUT PHANDLE FileHandle,
     PNAMED_PIPE_CREATE_PARAMETERS NamedPipeCreateParameters;
     POPEN_PACKET OpenPacket;
     ULONG EaErrorOffset;
+    PAGED_CODE();
 
     IOTRACE(IO_FILE_DEBUG, "FileName: %wZ\n", ObjectAttributes->ObjectName);
 
@@ -2487,7 +2488,7 @@ IopCreateFile(OUT PHANDLE FileHandle,
     if (OpenPacket->EaBuffer) ExFreePool(OpenPacket->EaBuffer);
 
     /* Now check for Ob or Io failure */
-    if (!(NT_SUCCESS(Status)) || (OpenPacket->ParseCheck != TRUE))
+    if (!(NT_SUCCESS(Status)) || (OpenPacket->ParseCheck == FALSE))
     {
         /* Check if Ob thinks well went well */
         if (NT_SUCCESS(Status))
@@ -2524,7 +2525,7 @@ IopCreateFile(OUT PHANDLE FileHandle,
                 _SEH2_END;
             }
         }
-        else if ((OpenPacket->FileObject) && (OpenPacket->ParseCheck != 1))
+        else if ((OpenPacket->FileObject) && (OpenPacket->ParseCheck == FALSE))
         {
             /*
              * This can happen in the very bizarre case where the parse routine