1
0
Fork 0
mirror of synced 2025-03-07 03:53:26 +01:00

wininet: Set AutoConfigURL registry key when saving proxy information.

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

View file

@ -376,6 +376,24 @@ static LONG INTERNET_SaveProxySettings( proxyinfo_t *lpwpi )
}
}
if (lpwpi->autoconf_url)
{
if ((ret = RegSetValueExW( key, L"AutoConfigURL", 0, REG_SZ, (BYTE*)lpwpi->autoconf_url,
sizeof(WCHAR) * (lstrlenW(lpwpi->autoconf_url) + 1))))
{
RegCloseKey( key );
return ret;
}
}
else
{
if ((ret = RegDeleteValueW( key, L"AutoConfigURL" )) && ret != ERROR_FILE_NOT_FOUND)
{
RegCloseKey( key );
return ret;
}
}
RegCloseKey(key);
return ERROR_SUCCESS;
}