Commit e81c2a6a authored by Jinoh Kang's avatar Jinoh Kang Committed by Alexandre Julliard

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: 's avatarJinoh Kang <jinoh.kang.kr@gmail.com> Signed-off-by: 's avatarZebediah Figura <zfigura@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 5d98ffe9
......@@ -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 );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment