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

Alexandre Julliard julliard at wine.codeweavers.com
Tue Dec 9 15:35:50 CST 2014


Module: wine
Branch: master
Commit: 2b6dacfdbe3f4c902a9243170880757ac2f7f806
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=2b6dacfdbe3f4c902a9243170880757ac2f7f806

Author: Hans Leidekker <hans at codeweavers.com>
Date:   Tue Dec  9 12:48:26 2014 +0100

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.

---

 dlls/winhttp/net.c | 10 +---------
 1 file changed, 1 insertion(+), 9 deletions(-)

diff --git a/dlls/winhttp/net.c b/dlls/winhttp/net.c
index b77c706..7213dd9 100644
--- a/dlls/winhttp/net.c
+++ b/dlls/winhttp/net.c
@@ -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;
 }




More information about the wine-cvs mailing list