From: short <> Date: Mon, 20 Jan 2003 23:28:41 +0000 (+0000) Subject: +NtWriteFile() X-Git-Tag: captive-0_2~90 X-Git-Url: http://git.jankratochvil.net/?a=commitdiff_plain;h=38dc01d92d5b1383131a39b0b1adf9e5138d4e7b;hp=42e25b47806b043054e0f60035cf6367d0be0732;p=reactos.git +NtWriteFile() --- diff --git a/ntoskrnl/io/rw.c b/ntoskrnl/io/rw.c index c456b56..78443f8 100644 --- a/ntoskrnl/io/rw.c +++ b/ntoskrnl/io/rw.c @@ -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