Lei Zhang : wininet: Remove redundant variables.

Alexandre Julliard julliard at winehq.org
Wed Nov 5 09:37:55 CST 2008


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

Author: Lei Zhang <thestig at google.com>
Date:   Tue Nov  4 10:51:44 2008 -0800

wininet: Remove redundant variables.

---

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

diff --git a/dlls/wininet/http.c b/dlls/wininet/http.c
index e088fa4..23686f2 100644
--- a/dlls/wininet/http.c
+++ b/dlls/wininet/http.c
@@ -2880,8 +2880,6 @@ static BOOL HTTP_GetRequestURL(WININETHTTPREQW *req, LPWSTR buf)
  */
 static BOOL HTTP_HandleRedirect(LPWININETHTTPREQW lpwhr, LPCWSTR lpszUrl)
 {
-    static const WCHAR szContentType[] = {'C','o','n','t','e','n','t','-','T','y','p','e',0};
-    static const WCHAR szContentLength[] = {'C','o','n','t','e','n','t','-','L','e','n','g','t','h',0};
     LPWININETHTTPSESSIONW lpwhs = lpwhr->lpHttpSession;
     LPWININETAPPINFOW hIC = lpwhs->lpAppInfo;
     BOOL using_proxy = hIC->lpszProxy && hIC->lpszProxy[0];
@@ -3073,10 +3071,10 @@ static BOOL HTTP_HandleRedirect(LPWININETHTTPREQW lpwhr, LPCWSTR lpszUrl)
     }
 
     /* Remove custom content-type/length headers on redirects.  */
-    index = HTTP_GetCustomHeaderIndex(lpwhr, szContentType, 0, TRUE);
+    index = HTTP_GetCustomHeaderIndex(lpwhr, szContent_Type, 0, TRUE);
     if (0 <= index)
         HTTP_DeleteCustomHeader(lpwhr, index);
-    index = HTTP_GetCustomHeaderIndex(lpwhr, szContentLength, 0, TRUE);
+    index = HTTP_GetCustomHeaderIndex(lpwhr, szContent_Length, 0, TRUE);
     if (0 <= index)
         HTTP_DeleteCustomHeader(lpwhr, index);
 




More information about the wine-cvs mailing list