Commit 666a472f authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

wininet: Set ProxyOverride registry key when saving proxy information.

parent 17d8cb24
......@@ -358,6 +358,24 @@ static LONG INTERNET_SaveProxySettings( proxyinfo_t *lpwpi )
}
}
if (lpwpi->proxyBypass)
{
if ((ret = RegSetValueExW( key, L"ProxyOverride", 0, REG_SZ, (BYTE*)lpwpi->proxyBypass,
sizeof(WCHAR) * (lstrlenW(lpwpi->proxyBypass) + 1))))
{
RegCloseKey( key );
return ret;
}
}
else
{
if ((ret = RegDeleteValueW( key, L"ProxyOverride" )) && ret != ERROR_FILE_NOT_FOUND)
{
RegCloseKey( key );
return ret;
}
}
RegCloseKey(key);
return ERROR_SUCCESS;
}
......
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