https://git.reactos.org/?p=reactos.git;a=commitdiff;h=65f97838084a5b1541f80c...
commit 65f97838084a5b1541f80c5ab4236495ae9b3ce0 Author: Pierre Schweitzer pierre@reactos.org AuthorDate: Fri Aug 17 19:12:30 2018 +0200 Commit: Pierre Schweitzer pierre@reactos.org CommitDate: Fri Aug 17 19:13:13 2018 +0200
[NTOSKRNL] Properly initialize the IO_STATUS_BLOCK --- ntoskrnl/fsrtl/fastio.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/ntoskrnl/fsrtl/fastio.c b/ntoskrnl/fsrtl/fastio.c index d3ea273a12..c9ff2f0375 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; }