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:
parent
5d98ffe982
commit
e81c2a6af4
|
@ -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 );
|
||||
|
|
Loading…
Reference in New Issue