Pull proxy information from the http_proxy environment variable
Mike Hearn
m.hearn at signal.qinetiq.com
Tue Jun 3 04:49:03 CDT 2003
ChangeLog:
Make wininet read the proxy information from the environment if it's not
present in the registry.
--
Mike Hearn <m.hearn at signal.qinetiq.com>
QinetiQ - Malvern Technology Center
-------------- next part --------------
--- dlls/wininet/internet.c.old 2003-06-02 15:12:07.000000000 +0100
+++ dlls/wininet/internet.c 2003-06-02 15:27:07.000000000 +0100
@@ -270,7 +270,15 @@
} else {
char *http_proxy;
http_proxy = getenv("http_proxy");
- WARN("No proxy information available\n");
+ /* check for a common environment variable */
+ if (http_proxy) {
+ if ((lpwai->lpszProxy = HeapAlloc( GetProcessHeap(), 0, strlen(http_proxy)+1 ))) {
+ TRACE("Pulled proxy (%s) from the environment\n", http_proxy);
+ strcpy( lpwai->lpszProxy, http_proxy );
+ }
+ } else {
+ WARN("No proxy information available\n");
+ }
}
}
More information about the wine-patches
mailing list