Andrew Ziem : wininet: Constify data.

Alexandre Julliard julliard at wine.codeweavers.com
Thu May 25 04:16:42 CDT 2006


Module: wine
Branch: refs/heads/master
Commit: 70533219265482cab28cf57eb06d55f5aa608360
URL:    http://source.winehq.org/git/?p=wine.git;a=commit;h=70533219265482cab28cf57eb06d55f5aa608360

Author: Andrew Ziem <ahziem1 at mailbolt.com>
Date:   Wed May 24 00:22:38 2006 -0600

wininet: Constify data.

---

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

diff --git a/dlls/wininet/http.c b/dlls/wininet/http.c
index 51d5d25..cb3c55c 100644
--- a/dlls/wininet/http.c
+++ b/dlls/wininet/http.c
@@ -2068,7 +2068,7 @@ #endif
                 urlComponents.nPort != INTERNET_DEFAULT_HTTPS_PORT)
         {
             int len;
-            static WCHAR fmt[] = {'%','s',':','%','i',0};
+            static const WCHAR fmt[] = {'%','s',':','%','i',0};
             len = lstrlenW(hostName);
             len += 7; /* 5 for strlen("65535") + 1 for ":" + 1 for '\0' */
             lpwhs->lpszHostName = HeapAlloc(GetProcessHeap(), 0, len*sizeof(WCHAR));
diff --git a/dlls/wininet/urlcache.c b/dlls/wininet/urlcache.c
index bafd30c..033e3c3 100644
--- a/dlls/wininet/urlcache.c
+++ b/dlls/wininet/urlcache.c
@@ -1897,7 +1897,7 @@ BOOL WINAPI CreateUrlCacheEntryW(
     LONG lBufferSize;
     BOOL bFound = FALSE;
     int count;
-    static WCHAR szWWW[] = {'w','w','w',0};
+    static const WCHAR szWWW[] = {'w','w','w',0};
 
     TRACE("(%s, 0x%08lx, %s, %p, 0x%08lx)\n",
         debugstr_w(lpszUrlName),
@@ -1990,7 +1990,7 @@ BOOL WINAPI CreateUrlCacheEntryW(
 
     for (i = 0; i < 255; i++)
     {
-	static WCHAR szFormat[] = {'[','%','u',']','%','s',0};
+	static const WCHAR szFormat[] = {'[','%','u',']','%','s',0};
         HANDLE hFile;
         wsprintfW(lpszFileNameNoPath + countnoextension, szFormat, i, szExtension);
         TRACE("Trying: %s\n", debugstr_w(lpszFileName));




More information about the wine-cvs mailing list