winhttp: netconn_query_data_available() is not used anymore so remove it.

Jacek Caban jacek at codeweavers.com
Fri Nov 1 04:58:47 CDT 2013


Hi Francois,

On 11/01/13 10:34, Francois Gouget wrote:
> ---
>  dlls/winhttp/net.c             | 20 --------------------
>  dlls/winhttp/winhttp_private.h |  1 -
>  2 files changed, 21 deletions(-)
>
> diff --git a/dlls/winhttp/net.c b/dlls/winhttp/net.c
> index 6d9b82a..ac8ae56 100644
> --- a/dlls/winhttp/net.c
> +++ b/dlls/winhttp/net.c
> @@ -712,26 +712,6 @@ BOOL netconn_recv( netconn_t *conn, void *buf, size_t len, int flags, int *recvd
>      return TRUE;
>  }
>  
> -BOOL netconn_query_data_available( netconn_t *conn, DWORD *available )
> -{
> -#ifdef FIONREAD
> -    int ret;
> -    ULONG unread;
> -#endif
> -    *available = 0;
> -    if (!netconn_connected( conn )) return FALSE;
> -
> -    if (conn->secure)
> -    {
> -        *available = conn->peek_len;
> -        return TRUE;
> -    }
> -#ifdef FIONREAD
> -    if (!(ret = ioctlsocket( conn->socket, FIONREAD, &unread ))) *available = unread;
> -#endif
> -    return TRUE;
> -}
> -

I think we should use this function instead. I will send a patch.

Jacek



More information about the wine-devel mailing list