[PATCH] rpcrt4: Implement wait_for_incoming_data() for named pipes transport.

Alexandre Julliard julliard at winehq.org
Mon Sep 16 03:20:24 CDT 2019


Dmitry Timoshkov <dmitry at baikal.ru> writes:

> +static int rpcrt4_conn_np_wait_for_incoming_data(RpcConnection *conn)
>  {
> -    /* FIXME: implement when named pipe writes use overlapped I/O */
> -    return -1;
> +    RpcConnection_np *connection = (RpcConnection_np *)conn;
> +    HANDLE event;
> +
> +    event = get_np_event(connection);
> +    if (!event) return -1;
> +
> +    WaitForSingleObject(event, INFINITE);
> +    release_np_event(connection, event);

How is that event going to be set?

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list