diff --git a/dlls/wininet/http.c b/dlls/wininet/http.c index 5d51341b356..2f86855a0ff 100644 --- a/dlls/wininet/http.c +++ b/dlls/wininet/http.c @@ -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 )