Some more cleanup
This commit is contained in:
parent
009bb7f033
commit
73f40b11ee
|
@ -154,9 +154,11 @@ bool KIPLATFORM::ENV::GetSystemProxyConfig( const wxString& aURL, PROXY_CONFIG&
|
|||
if( autoProxyDetect )
|
||||
{
|
||||
proxyResolveSession =
|
||||
WinHttpOpen( L"kicad", WINHTTP_ACCESS_TYPE_AUTOMATIC_PROXY, WINHTTP_NO_PROXY_NAME,
|
||||
WinHttpOpen( NULL, WINHTTP_ACCESS_TYPE_AUTOMATIC_PROXY, WINHTTP_NO_PROXY_NAME,
|
||||
WINHTTP_NO_PROXY_BYPASS, WINHTTP_FLAG_ASYNC );
|
||||
|
||||
if( proxyResolveSession )
|
||||
{
|
||||
// either we use the ie url or we set the auto detect mode
|
||||
if( autoProxyOptions.lpszAutoConfigUrl != NULL )
|
||||
{
|
||||
|
@ -174,10 +176,9 @@ bool KIPLATFORM::ENV::GetSystemProxyConfig( const wxString& aURL, PROXY_CONFIG&
|
|||
autoProxyDetect = WinHttpGetProxyForUrl( proxyResolveSession, aURL.c_str(),
|
||||
&autoProxyOptions, &autoProxyInfo );
|
||||
|
||||
if( proxyResolveSession )
|
||||
{
|
||||
WinHttpCloseHandle( proxyResolveSession );
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
if( autoProxyDetect )
|
||||
|
|
Loading…
Reference in New Issue