Jacek Caban : wininet: Use parsed status_code to test for CONTINUE HTTP response.

Alexandre Julliard julliard at winehq.org
Fri Mar 15 11:51:34 CDT 2013


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

Author: Jacek Caban <jacek at codeweavers.com>
Date:   Fri Mar 15 11:46:22 2013 +0100

wininet: Use parsed status_code to test for CONTINUE HTTP response.

---

 dlls/wininet/http.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/dlls/wininet/http.c b/dlls/wininet/http.c
index a3f68ae..d0ed459 100644
--- a/dlls/wininet/http.c
+++ b/dlls/wininet/http.c
@@ -5680,7 +5680,6 @@ static INT HTTP_GetResponseHeaders(http_request_t *request, BOOL clear)
 
     NETCON_set_timeout( request->netconn, FALSE, request->receive_timeout );
     do {
-        static const WCHAR szHundred[] = {'1','0','0',0};
         /*
          * We should first receive 'HTTP/1.x nnn OK' where nnn is the status code.
          */
@@ -5716,7 +5715,7 @@ static INT HTTP_GetResponseHeaders(http_request_t *request, BOOL clear)
             TRACE("version [%s] status code [%s] status text [%s]\n",
                debugstr_w(buffer), debugstr_w(status_code), debugstr_w(status_text) );
 
-            codeHundred = (!strcmpW(status_code, szHundred));
+            codeHundred = request->status_code == HTTP_STATUS_CONTINUE;
         }
         else if (!codeHundred)
         {




More information about the wine-cvs mailing list