[1/2] wininet: Remove MSG_PEEK hack from HTTP_GetResponseHeaders.

Hans Leidekker hans at meelstraat.net
Wed Mar 4 05:42:43 CST 2009


Fixes Quicken 2009. Aric said he added this hack back in 2002
to work around a bug in the IE6 installer, which installs fine
now without this hack.

 -Hans

diff --git a/dlls/wininet/http.c b/dlls/wininet/http.c
index 3a42d67..6a9df2c 100644
--- a/dlls/wininet/http.c
+++ b/dlls/wininet/http.c
@@ -3833,17 +3833,12 @@ static INT HTTP_GetResponseHeaders(LPWININETHTTPREQW lpwhr, BOOL clear)
 
     do {
         /*
-         * HACK peek at the buffer
-         */
-        buflen = MAX_REPLY_LEN;
-        NETCON_recv(&lpwhr->netConnection, buffer, buflen, MSG_PEEK, &rc);
-
-        /*
          * We should first receive 'HTTP/1.x nnn OK' where nnn is the status code.
          */
-        memset(buffer, 0, MAX_REPLY_LEN);
+        buflen = MAX_REPLY_LEN;
         if (!NETCON_getNextLine(&lpwhr->netConnection, bufferA, &buflen))
             goto lend;
+        rc += buflen;
         MultiByteToWideChar( CP_ACP, 0, bufferA, buflen, buffer, MAX_REPLY_LEN );
 
         /* split the version from the status code */



More information about the wine-patches mailing list