ntdll: Remove redundant avail_mode check and confusing comment.
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
bbcb77cda5
commit
63468b02b8
|
@ -523,13 +523,7 @@ static NTSTATUS FILE_AsyncReadService( void *user, IO_STATUS_BLOCK *iosb,
|
|||
if (fileio->already >= fileio->count || fileio->avail_mode)
|
||||
status = STATUS_SUCCESS;
|
||||
else
|
||||
{
|
||||
/* if we only have to read the available data, and none is available,
|
||||
* simply cancel the request. If data was available, it has been read
|
||||
* while in by previous call (NtDelayExecution)
|
||||
*/
|
||||
status = (fileio->avail_mode) ? STATUS_SUCCESS : STATUS_PENDING;
|
||||
}
|
||||
status = STATUS_PENDING;
|
||||
}
|
||||
break;
|
||||
|
||||
|
|
Loading…
Reference in New Issue