Module: wine Branch: master Commit: 21d14104948e28d118925d53a9bee9ef80cea7dc URL: http://source.winehq.org/git/wine.git/?a=commit;h=21d14104948e28d118925d53a9...
Author: Jacek Caban jacek@codeweavers.com Date: Fri Feb 10 16:06:19 2017 +0100
ntdll: Don't set io->Information in server_read_file and server_write_file.
Currently we set Information, but not Status. According to tests, depending on error type, none or both should be set. Both will be set when APC is used.
Signed-off-by: Jacek Caban jacek@codeweavers.com Signed-off-by: Alexandre Julliard julliard@winehq.org
---
dlls/ntdll/file.c | 2 -- 1 file changed, 2 deletions(-)
diff --git a/dlls/ntdll/file.c b/dlls/ntdll/file.c index a6c1098..f3ff163 100644 --- a/dlls/ntdll/file.c +++ b/dlls/ntdll/file.c @@ -579,7 +579,6 @@ static NTSTATUS server_read_file( HANDLE handle, HANDLE event, PIO_APC_ROUTINE a status = wine_server_call( req ); wait_handle = wine_server_ptr_handle( reply->wait ); options = reply->options; - if (status != STATUS_PENDING) io->Information = wine_server_reply_size( reply ); } SERVER_END_REQ;
@@ -627,7 +626,6 @@ static NTSTATUS server_write_file( HANDLE handle, HANDLE event, PIO_APC_ROUTINE status = wine_server_call( req ); wait_handle = wine_server_ptr_handle( reply->wait ); options = reply->options; - if (status != STATUS_PENDING) io->Information = reply->size; } SERVER_END_REQ;