include/winhttp.h: Make strings in WINHTTP_PROXY_INFO non-const

Heiko Hund heiko.hund at sophos.com
Wed Jul 18 10:11:24 CDT 2012


The strings shouldn't be const according to the docs at [1] and
declaring them as LPWSTR removes some false warnings when
compiling code GlobalFree()ing them with mingw.

[1] http://msdn.microsoft.com/en-us/library/aa383912.aspx
---
 include/winhttp.h |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/winhttp.h b/include/winhttp.h
index b54bd92..cf0da83 100644
--- a/include/winhttp.h
+++ b/include/winhttp.h
@@ -487,8 +487,8 @@ typedef struct
 typedef struct
 {
     DWORD dwAccessType;
-    LPCWSTR lpszProxy;
-    LPCWSTR lpszProxyBypass;
+    LPWSTR lpszProxy;
+    LPWSTR lpszProxyBypass;
 } WINHTTP_PROXY_INFO, *LPWINHTTP_PROXY_INFO;
 typedef WINHTTP_PROXY_INFO WINHTTP_PROXY_INFOW;
 typedef LPWINHTTP_PROXY_INFO LPWINHTTP_PROXY_INFOW;
-- 
1.7.9.1




More information about the wine-patches mailing list