Check before adding http:// in HTTP_DealWithProxy
Uwe Bonnes
bon at elektron.ikp.physik.tu-darmstadt.de
Sat Oct 4 08:34:58 CDT 2003
Changelog:
dlls/wininet/http.c: HTTP_DealWithProxy()
Only add http:// to proxy string when needed
--
Uwe Bonnes bon at elektron.ikp.physik.tu-darmstadt.de
Institut fuer Kernphysik Schlossgartenstrasse 9 64289 Darmstadt
--------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------
Index: wine/dlls/wininet/http.c
===================================================================
RCS file: /home/wine/wine/dlls/wininet/http.c,v
retrieving revision 1.42
diff -u -r1.42 http.c
--- wine/dlls/wininet/http.c 25 Sep 2003 20:25:22 -0000 1.42
+++ wine/dlls/wininet/http.c 4 Oct 2003 13:31:53 -0000
@@ -503,8 +503,12 @@
UrlComponents.dwStructSize = sizeof UrlComponents;
UrlComponents.lpszHostName = buf;
UrlComponents.dwHostNameLength = MAXHOSTNAME;
-
- sprintf(proxy, "http://%s/", hIC->lpszProxy);
+
+ if(strncmp(lpwhr->lpszPath, "http://", sizeof("http://") -1) == 0)
+ sprintf(proxy, "http://%s/", hIC->lpszProxy);
+ else
+ sprintf(proxy, "%s", hIC->lpszProxy);
+
if( !InternetCrackUrlA(proxy, 0, 0, &UrlComponents) )
return FALSE;
if( UrlComponents.dwHostNameLength == 0 )
More information about the wine-patches
mailing list