wininet: Set ProxyOverride registry key when saving proxy information.
This commit is contained in:
parent
17d8cb24d4
commit
666a472f06
1 changed files with 18 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue