Put back extra info if it was present
authorGé van Geldorp <ge@gse.nl>
Sun, 11 Dec 2005 21:24:27 +0000 (21:24 +0000)
committerGé van Geldorp <ge@gse.nl>
Sun, 11 Dec 2005 21:24:27 +0000 (21:24 +0000)
svn path=/trunk/; revision=20085

reactos/lib/wininet/http.c

index 47ee33d..9eb39d0 100644 (file)
@@ -1369,6 +1369,10 @@ static BOOL HTTP_HandleRedirect(LPWININETHTTPREQW lpwhr, LPCWSTR lpszUrl, LPCWST
         if (urlComponents.nPort == INTERNET_INVALID_PORT_NUMBER)
             urlComponents.nPort = INTERNET_DEFAULT_HTTP_PORT;
 
+        if (sizeof(path) / sizeof(path[0]) <= strlenW(path) + strlenW(extra))
+            return FALSE;
+        strcatW(path, extra);
+
 #if 0
         /*
          * This upsets redirects to binary files on sourceforge.net