Commit 87487c14 authored by Hans Leidekker's avatar Hans Leidekker Committed by Alexandre Julliard

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

parent 36014639
......@@ -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 );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment