[PATCH 1/2] ntdll: Remove redundant avail_mode check and confusing comment.
Alex Henrie
alexhenrie24 at gmail.com
Mon Jan 11 03:02:32 CST 2016
Cc: Eric Pouech <eric.pouech at orange.fr>
Signed-off-by: Alex Henrie <alexhenrie24 at gmail.com>
---
dlls/ntdll/file.c | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/dlls/ntdll/file.c b/dlls/ntdll/file.c
index 1027b54..b90695e 100644
--- a/dlls/ntdll/file.c
+++ b/dlls/ntdll/file.c
@@ -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;
--
2.7.0
More information about the wine-patches
mailing list