wininet: Set ProxyOverride registry key when saving proxy information.

This commit is contained in:
Piotr Caban 2024-02-06 20:10:22 +01:00 committed by Alexandre Julliard
parent 17d8cb24d4
commit 666a472f06

View file

@ -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;
}