[PATCH v7 04/11] server: Allow async completion callback to retrieve status on synchronous failure.

Jinoh Kang jinoh.kang.kr at gmail.com
Sat Mar 19 17:28:11 CDT 2022


This also makes async_handoff() behaviour more consistent with
async_set_result() for handling I/O failures.

Signed-off-by: Jinoh Kang <jinoh.kang.kr at gmail.com>
---

Notes:
    v6 -> v7: new patch

 server/async.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/server/async.c b/server/async.c
index 182344923d4..6905058fa69 100644
--- a/server/async.c
+++ b/server/async.c
@@ -370,6 +370,7 @@ obj_handle_t async_handoff( struct async *async, data_size_t *result, int force_
 
     if (!async->pending && NT_ERROR( get_error() ))
     {
+        async->iosb->status = get_error();
         async_call_completion_callback( async );
 
         close_handle( async->thread->process, async->wait_handle );
-- 
2.34.1




More information about the wine-devel mailing list