Fix "http://" prefix detection on the proxy URL.

This commit is contained in:
Robert Shearman 2005-11-28 11:31:11 +01:00 committed by Alexandre Julliard
parent 386c3a5819
commit cc44f3a5c7
1 changed files with 2 additions and 2 deletions

View File

@ -898,10 +898,10 @@ static BOOL HTTP_DealWithProxy( LPWININETAPPINFOW hIC,
UrlComponents.dwHostNameLength = MAXHOSTNAME;
if( CSTR_EQUAL != CompareStringW(LOCALE_SYSTEM_DEFAULT, NORM_IGNORECASE,
buf,strlenW(szHttp),szHttp,strlenW(szHttp)) )
hIC->lpszProxy,strlenW(szHttp),szHttp,strlenW(szHttp)) )
sprintfW(proxy, szFormat1, hIC->lpszProxy);
else
strcpyW(proxy,buf);
strcpyW(proxy, hIC->lpszProxy);
if( !InternetCrackUrlW(proxy, 0, 0, &UrlComponents) )
return FALSE;
if( UrlComponents.dwHostNameLength == 0 )