+NtWriteFile()
authorshort <>
Mon, 20 Jan 2003 23:28:41 +0000 (23:28 +0000)
committershort <>
Mon, 20 Jan 2003 23:28:41 +0000 (23:28 +0000)
ntoskrnl/io/rw.c

index c456b56..78443f8 100644 (file)
@@ -161,7 +161,6 @@ NTSTATUS STDCALL NtReadFile(HANDLE                  FileHandle,
   return(Status);
 }
 
-#ifndef LIBCAPTIVE
 
 /**********************************************************************
  * NAME                                                        EXPORTED
@@ -216,6 +215,7 @@ NTSTATUS STDCALL NtWriteFile(HANDLE                 FileHandle,
   
   if (EventHandle != NULL)
     {
+#ifndef LIBCAPTIVE
       Status = ObReferenceObjectByHandle(EventHandle,
                                         SYNCHRONIZE,
                                         ExEventObjectType,
@@ -227,6 +227,9 @@ NTSTATUS STDCALL NtWriteFile(HANDLE                 FileHandle,
          ObDereferenceObject(FileObject);
          return(Status);
        }
+#else /* !LIBCAPTIVE */
+      KeBugCheck(0);
+#endif /* LIBCAPTIVE */
     }
   else 
     {
@@ -299,6 +302,7 @@ NTSTATUS STDCALL NtWriteFile(HANDLE                 FileHandle,
   return(Status);
 }
 
+#ifndef LIBCAPTIVE
 
 /**********************************************************************
  * NAME                                                        EXPORTED