From: Paul Gofman Subject: [PATCH v3 5/5] ntdll: Always return STATUS_PENDING from NtReadFile() for async read. Message-Id: <20190220185018.14919-5-gofmanp@gmail.com> Date: Wed, 20 Feb 2019 21:50:18 +0300 In-Reply-To: <20190220185018.14919-1-gofmanp@gmail.com> References: <20190220185018.14919-1-gofmanp@gmail.com> Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=43071 This matches Vista+ behaviour. Signed-off-by: Paul Gofman --- v2, v3: no changes. dlls/ntdll/file.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dlls/ntdll/file.c b/dlls/ntdll/file.c index b6307a2436..43f391a6e1 100644 --- a/dlls/ntdll/file.c +++ b/dlls/ntdll/file.c @@ -1013,8 +1013,7 @@ err: if (status != STATUS_PENDING && hEvent) NtResetEvent( hEvent, NULL ); } - ret_status = async_read && (options & FILE_NO_INTERMEDIATE_BUFFERING) && status == STATUS_SUCCESS - ? STATUS_PENDING : status; + ret_status = async_read && status == STATUS_SUCCESS ? STATUS_PENDING : status; if (send_completion) NTDLL_AddCompletion( hFile, cvalue, status, total, ret_status == STATUS_PENDING ); return ret_status; -- 2.20.1