[PATCH 3/3] this patch fix the bug load proxy setting by ie internet options
huangxuewei
huangxuewei at linuxdeepin.com
Tue Jul 5 03:40:52 CDT 2016
Signed-off-by: huangxuewei <huangxuewei at linuxdeepin.com>
---
dlls/wininet/internet.c | 13 +------------
1 file changed, 1 insertion(+), 12 deletions(-)
diff --git a/dlls/wininet/internet.c b/dlls/wininet/internet.c
index f52481d..4c9ea71 100644
--- a/dlls/wininet/internet.c
+++ b/dlls/wininet/internet.c
@@ -607,8 +607,7 @@ static LONG INTERNET_LoadProxySettings( proxyinfo_t *lpwpi )
/* figure out how much memory the proxy setting takes */
if (!RegQueryValueExW( key, szProxyServer, NULL, &type, NULL, &len ) && len && (type == REG_SZ))
{
- LPWSTR szProxy, p;
- static const WCHAR szHttp[] = {'h','t','t','p','=',0};
+ LPWSTR szProxy;
if (!(szProxy = heap_alloc(len)))
{
@@ -618,16 +617,6 @@ static LONG INTERNET_LoadProxySettings( proxyinfo_t *lpwpi )
}
RegQueryValueExW( key, szProxyServer, NULL, &type, (BYTE*)szProxy, &len );
- /* find the http proxy, and strip away everything else */
- p = strstrW( szProxy, szHttp );
- if (p)
- {
- p += lstrlenW( szHttp );
- lstrcpyW( szProxy, p );
- }
- p = strchrW( szProxy, ';' );
- if (p) *p = 0;
-
FreeProxyInfo( lpwpi );
lpwpi->proxy = szProxy;
lpwpi->proxyBypass = NULL;
--
2.8.0.rc3
More information about the wine-patches
mailing list