X-Git-Url: https://git.reactos.org/?p=reactos.git;a=blobdiff_plain;f=ntoskrnl%2Ffsrtl%2Ffastio.c;h=c9ff2f037521c773f138ac7dc28fffb0c8822613;hp=d3ea273a128a67e8b0d25c09b4b25ccc2544bb9c;hb=65f97838084a5b1541f80c5ab4236495ae9b3ce0;hpb=abf9340f1be1ceb1780af68c50a2c49a350fa23d 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; }