[PATCH] ntdll: Finish serial reads of size 0 immediately.

Alexandre Julliard julliard at winehq.org
Mon Feb 15 08:36:45 CST 2016


Alex Henrie <alexhenrie24 at gmail.com> writes:

> diff --git a/dlls/ntdll/file.c b/dlls/ntdll/file.c
> index 3883e5a..1e37ce3 100644
> --- a/dlls/ntdll/file.c
> +++ b/dlls/ntdll/file.c
> @@ -883,7 +883,8 @@ NTSTATUS WINAPI NtReadFile(HANDLE hFile, HANDLE hEvent,
>                      status = length ? STATUS_END_OF_FILE : STATUS_SUCCESS;
>                      goto done;
>                  case FD_TYPE_SERIAL:
> -                    break;
> +                    status = STATUS_SUCCESS;

What if the requested size wasn't 0?  That probably needs a test case
too.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list