[PATCH 1/3] ntdll: NtReadFileScatter always returns asynchronously

Alexandre Julliard julliard at winehq.org
Wed Nov 29 14:41:03 CST 2017


Andrew Eikum <aeikum at codeweavers.com> writes:

> @@ -1090,7 +1090,9 @@ NTSTATUS WINAPI NtReadFileScatter( HANDLE file, HANDLE event, PIO_APC_ROUTINE ap
>      if (needs_close) close( unix_handle );
>      if (status == STATUS_SUCCESS)
>      {
> -        io_status->u.Status = status;
> +        /* report status asynchronously */
> +        status = STATUS_PENDING;

This will cause the fd completion a few lines below to be reported with
STATUS_PENDING, which doesn't seem right.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list