[PATCH 1/3] ws2_32: Revise AcceptEx behavior to send completions for canceled sockets (resend 3, deferred).

Alexandre Julliard julliard at winehq.org
Thu Apr 19 05:05:30 CDT 2012


"Erich E. Hoover" <ehoover at mines.edu> 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
julliard at winehq.org



More information about the wine-devel mailing list