Cosmetic: NtWriteFile(): Fixed debug message
[reactos.git] / ntoskrnl / io / rw.c
index c456b56..28a13b9 100644 (file)
@@ -161,7 +161,6 @@ NTSTATUS STDCALL NtReadFile(HANDLE                  FileHandle,
   return(Status);
 }
 
-#ifndef LIBCAPTIVE
 
 /**********************************************************************
  * NAME                                                        EXPORTED
@@ -194,7 +193,7 @@ NTSTATUS STDCALL NtWriteFile(HANDLE                 FileHandle,
   IO_STATUS_BLOCK Iosb;
   PIO_STATUS_BLOCK IoStatusBlock;
   
-  DPRINT("NtReadFile(FileHandle %x Buffer %x Length %x ByteOffset %x, "
+  DPRINT("NtWriteFile(FileHandle %x Buffer %x Length %x ByteOffset %x, "
         "IoStatusBlock %x)\n", FileHandle, Buffer, Length, ByteOffset,
         IoStatusBlock);
   
@@ -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