"Erich E. Hoover" <[email protected]> writes:

> @@ -256,10 +256,12 @@ void async_set_result( struct object *obj, unsigned int 
> status, unsigned int tot
>      else
>      {
>          if (async->timeout) remove_timeout_user( async->timeout );
> +        if (async->completion && async->data.cvalue && status != 
> STATUS_ALERTED)
> +            add_completion( async->completion, async->comp_key, 
> async->data.cvalue, status, total );
> +        else if (async->completion && async->data.cvalue && status == 
> STATUS_ALERTED)
> +            status = STATUS_SUCCESS;

This looks pretty hackish, the server shouldn't have to care about the
status values or patch them up for the client.

-- 
Alexandre Julliard
[email protected]


Reply via email to