winhttp: Don't report data pending in the socket.

Some installers make assumptions about the size of the internal buffer. We could
exceed that size when there's enough data pending in the socket.
This commit is contained in:
Hans Leidekker 2014-12-09 12:48:26 +01:00 committed by Alexandre Julliard
parent 647abcafb6
commit 2b6dacfdbe
1 changed files with 1 additions and 9 deletions

View File

@ -740,16 +740,8 @@ ULONG netconn_query_data_available( netconn_t *conn )
if(!netconn_connected(conn))
return 0;
if(conn->secure) {
if(conn->secure)
return conn->peek_len;
}else {
#ifdef FIONREAD
ULONG unread;
if(!ioctlsocket(conn->socket, FIONREAD, &unread))
return unread;
#endif
}
return 0;
}