Jinoh Kang : server: Allow async completion callback to retrieve status on synchronous failure.

Alexandre Julliard julliard at winehq.org
Fri Mar 25 15:28:09 CDT 2022


Module: wine
Branch: master
Commit: e81c2a6af4c2b4103f2e06fd280fee2bf56de1ee
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=e81c2a6af4c2b4103f2e06fd280fee2bf56de1ee

Author: Jinoh Kang <jinoh.kang.kr at gmail.com>
Date:   Thu Mar 24 02:25:08 2022 +0900

server: Allow async completion callback to retrieve status on synchronous failure.

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>
Signed-off-by: Zebediah Figura <zfigura at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

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

diff --git a/server/async.c b/server/async.c
index a4c9090fa73..a4fbeab555e 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 );




More information about the wine-cvs mailing list