+ntoskrnl/io/rw.c
authorshort <>
Mon, 23 Dec 2002 00:02:58 +0000 (00:02 +0000)
committershort <>
Mon, 23 Dec 2002 00:02:58 +0000 (00:02 +0000)
 - +NtReadFile()

ntoskrnl/io/rw.c

index 38f1b83..c456b56 100644 (file)
@@ -74,6 +74,7 @@ NTSTATUS STDCALL NtReadFile(HANDLE                    FileHandle,
   
   if (EventHandle != NULL)
     {
+#ifndef LIBCAPTIVE
       Status = ObReferenceObjectByHandle(EventHandle,
                                         SYNCHRONIZE,
                                         ExEventObjectType,
@@ -85,6 +86,9 @@ NTSTATUS STDCALL NtReadFile(HANDLE                    FileHandle,
          ObDereferenceObject(FileObject);
          return(Status);
        }
+#else /* !LIBCAPTIVE */
+      KeBugCheck(0);
+#endif /* LIBCAPTIVE */
     }
   else 
     {
@@ -157,6 +161,7 @@ NTSTATUS STDCALL NtReadFile(HANDLE                  FileHandle,
   return(Status);
 }
 
+#ifndef LIBCAPTIVE
 
 /**********************************************************************
  * NAME                                                        EXPORTED
@@ -356,5 +361,6 @@ NtWriteFileGather (
        UNIMPLEMENTED;
 }
 
+#endif /* LIBCAPTIVE */
 
 /* EOF */