Cosmetic: NtWriteFile(): Fixed debug message
[reactos.git] / ntoskrnl / io / rw.c
index 38f1b83..28a13b9 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 
     {
@@ -189,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);
   
@@ -211,6 +215,7 @@ NTSTATUS STDCALL NtWriteFile(HANDLE                 FileHandle,
   
   if (EventHandle != NULL)
     {
+#ifndef LIBCAPTIVE
       Status = ObReferenceObjectByHandle(EventHandle,
                                         SYNCHRONIZE,
                                         ExEventObjectType,
@@ -222,6 +227,9 @@ NTSTATUS STDCALL NtWriteFile(HANDLE                 FileHandle,
          ObDereferenceObject(FileObject);
          return(Status);
        }
+#else /* !LIBCAPTIVE */
+      KeBugCheck(0);
+#endif /* LIBCAPTIVE */
     }
   else 
     {
@@ -294,6 +302,7 @@ NTSTATUS STDCALL NtWriteFile(HANDLE                 FileHandle,
   return(Status);
 }
 
+#ifndef LIBCAPTIVE
 
 /**********************************************************************
  * NAME                                                        EXPORTED
@@ -356,5 +365,6 @@ NtWriteFileGather (
        UNIMPLEMENTED;
 }
 
+#endif /* LIBCAPTIVE */
 
 /* EOF */