winhttp: Store a copy of the proxy server name and bypass list.

This commit is contained in:
Hans Leidekker 2011-07-29 13:26:02 +02:00 committed by Alexandre Julliard
parent 36014639ea
commit 87487c14c7
1 changed files with 6 additions and 2 deletions

View File

@ -2202,6 +2202,8 @@ static ULONG WINAPI winhttp_request_Release(
WinHttpCloseHandle( request->hsession );
CloseHandle( request->wait );
CloseHandle( request->cancel );
heap_free( (WCHAR *)request->proxy.lpszProxy );
heap_free( (WCHAR *)request->proxy.lpszProxyBypass );
heap_free( request->buffer );
heap_free( request->verb );
heap_free( request );
@ -2384,8 +2386,8 @@ static HRESULT WINAPI winhttp_request_SetProxy(
case HTTPREQUEST_PROXYSETTING_PROXY:
request->proxy.dwAccessType = WINHTTP_ACCESS_TYPE_NAMED_PROXY;
request->proxy.lpszProxy = V_BSTR( &proxy_server );
request->proxy.lpszProxyBypass = V_BSTR( &bypass_list );
request->proxy.lpszProxy = strdupW( V_BSTR( &proxy_server ) );
request->proxy.lpszProxyBypass = strdupW( V_BSTR( &bypass_list ) );
break;
default: return E_INVALIDARG;
@ -3021,6 +3023,8 @@ static HRESULT WINAPI winhttp_request_Abort(
WinHttpCloseHandle( request->hsession );
CloseHandle( request->wait );
CloseHandle( request->cancel );
heap_free( (WCHAR *)request->proxy.lpszProxy );
heap_free( (WCHAR *)request->proxy.lpszProxyBypass );
heap_free( request->buffer );
heap_free( request->verb );
initialize_request( request );