[PATCH] wineinet: Make local variables static const from const

Nigel Liang ncliang at gmail.com
Wed Oct 17 15:18:09 CDT 2007


diff --git a/dlls/wininet/internet.c b/dlls/wininet/internet.c
index 6228f3f..97f088d 100644
--- a/dlls/wininet/internet.c
+++ b/dlls/wininet/internet.c
@@ -478,7 +478,7 @@ #define FE(x) { x, #x }
 	};
 #undef FE
 	DWORD i;
-	const char *access_type_str = "Unknown";
+	static const char *access_type_str = "Unknown";
 	
 	TRACE("(%s, %i, %s, %s, %i)\n", debugstr_w(lpszAgent), dwAccessType,
 	      debugstr_w(lpszProxy), debugstr_w(lpszProxyBypass), dwFlags);
@@ -1240,8 +1240,8 @@ BOOL WINAPI InternetCrackUrlW(LPCWSTR lp
     LPCWSTR lpszcp = NULL;
     LPWSTR  lpszUrl_decode = NULL;
     DWORD dwUrlLength = dwUrlLength_orig;
-    const WCHAR lpszSeparators[3]={';','?',0};
-    const WCHAR lpszSlash[2]={'/',0};
+    static const WCHAR lpszSeparators[3]={';','?',0};
+    static const WCHAR lpszSlash[2]={'/',0};
 
     TRACE("(%s %u %x %p)\n", debugstr_wn(lpszUrl, dwUrlLength), dwUrlLength, dwFlags, lpUC);
 
-- 
1.4.1




More information about the wine-patches mailing list