Re: [PATCH v2] ntdll: Finish serial reads of size 0 immediately.
24 Feb
2016
24 Feb
'16
1:41 p.m.
Alex Henrie <alexhenrie24(a)gmail.com> writes:
@@ -854,11 +857,11 @@ NTSTATUS WINAPI NtReadFile(HANDLE hFile, HANDLE hEvent, goto done; } } - else if (type == FD_TYPE_SERIAL || type == FD_TYPE_DEVICE) + else if (type == FD_TYPE_SERIAL) { - if (async_read && (!offset || offset->QuadPart < 0)) + if (!length) { - status = STATUS_INVALID_PARAMETER; + status = STATUS_SUCCESS; goto done;
I think it would be cleaner to use the same code path as the other types (calling read() first) instead of adding a special case for serial. -- Alexandre Julliard julliard(a)winehq.org
3580
Age (days ago)
3580
Last active (days ago)
0 comments
1 participants
participants (1)
-
Alexandre Julliard