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@gmail.com>
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Jinoh Kang 2022-03-24 02:25:08 +09:00 committed by Alexandre Julliard
parent 5d98ffe982
commit e81c2a6af4
1 changed files with 1 additions and 0 deletions

View File

@ -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 );