Commit 2b6dacfd authored by Hans Leidekker's avatar Hans Leidekker Committed by Alexandre Julliard

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.
parent 647abcaf
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment