[NTOSKRNL] Properly initialize the IO_STATUS_BLOCK

This commit is contained in:
Pierre Schweitzer 2018-08-17 19:12:30 +02:00
parent abf9340f1b
commit 65f9783808
No known key found for this signature in database
GPG key ID: 7545556C3D585B0B

View file

@ -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;
}