winhttp: If the default proxy settings are not found, delete the bogus ones after test.
This commit is contained in:
parent
09ee823399
commit
e5f4c802dc
|
@ -867,7 +867,10 @@ static void set_default_proxy_reg_value( BYTE *buf, DWORD len, DWORD type )
|
|||
KEY_WRITE, NULL, &key, NULL );
|
||||
if (!l)
|
||||
{
|
||||
RegSetValueExW( key, WinHttpSettings, 0, type, buf, len );
|
||||
if (len)
|
||||
RegSetValueExW( key, WinHttpSettings, 0, type, buf, len );
|
||||
else
|
||||
RegDeleteValueW( key, WinHttpSettings );
|
||||
RegCloseKey( key );
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue