NtReadFile(): Take FILE_USE_FILE_POINTER_POSITION into account.
authorEric Kohl <eric.kohl@reactos.org>
Sun, 10 Oct 2004 18:23:09 +0000 (18:23 +0000)
committerEric Kohl <eric.kohl@reactos.org>
Sun, 10 Oct 2004 18:23:09 +0000 (18:23 +0000)
svn path=/trunk/; revision=11260

reactos/ntoskrnl/io/rw.c

index 73c8bf0..dbb84a0 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: rw.c,v 1.55 2004/09/28 10:51:05 ekohl Exp $
+/* $Id: rw.c,v 1.56 2004/10/10 18:23:09 ekohl Exp $
  *
  * COPYRIGHT:      See COPYING in the top level directory
  * PROJECT:        ReactOS kernel
  *
  * COPYRIGHT:      See COPYING in the top level directory
  * PROJECT:        ReactOS kernel
@@ -70,7 +70,9 @@ NtReadFile (IN HANDLE FileHandle,
     return Status;
   }
 
     return Status;
   }
 
-  if (ByteOffset == NULL)
+  if (ByteOffset == NULL ||
+      (ByteOffset->u.LowPart == FILE_USE_FILE_POINTER_POSITION &&
+       ByteOffset->u.HighPart == 0xffffffff))
   {
     /* a valid ByteOffset is required if asynch. op. */
     if (!(FileObject->Flags & FO_SYNCHRONOUS_IO))
   {
     /* a valid ByteOffset is required if asynch. op. */
     if (!(FileObject->Flags & FO_SYNCHRONOUS_IO))