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

server: Ensure initial status is set in async_set_result().

Shift the resposibility of setting initial status from set_async_direct_result request handler to async_set_result(). 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 b632dded
......@@ -481,6 +481,8 @@ void async_set_result( struct object *obj, unsigned int status, apc_param_t tota
assert( async->terminated ); /* it must have been woken up if we get a result */
if (async->unknown_status) async_set_initial_status( async, status );
if (async->alerted && status == STATUS_PENDING) /* restart it */
{
async->terminated = 0;
......@@ -765,8 +767,6 @@ DECL_HANDLER(set_async_direct_result)
return;
}
async_set_initial_status( async, status );
if (status == STATUS_PENDING)
{
async->direct_result = 0;
......
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