From: Pierre Schweitzer Date: Fri, 17 Aug 2018 17:12:30 +0000 (+0200) Subject: [NTOSKRNL] Properly initialize the IO_STATUS_BLOCK X-Git-Tag: 0.4.11-dev~104 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=65f97838084a5b1541f80c5ab4236495ae9b3ce0;hp=abf9340f1be1ceb1780af68c50a2c49a350fa23d [NTOSKRNL] Properly initialize the IO_STATUS_BLOCK --- diff --git a/ntoskrnl/fsrtl/fastio.c b/ntoskrnl/fsrtl/fastio.c index d3ea273a128..c9ff2f03752 100644 --- a/ntoskrnl/fsrtl/fastio.c +++ b/ntoskrnl/fsrtl/fastio.c @@ -310,11 +310,13 @@ FsRtlCopyWrite(IN PFILE_OBJECT FileObject, return FALSE; } + /* Already init IO_STATUS_BLOCK */ + IoStatus->Status = STATUS_SUCCESS; + IoStatus->Information = Length; + /* No actual read */ if (!Length) { - IoStatus->Status = STATUS_SUCCESS; - IoStatus->Information = Length; return TRUE; }