Commit e5f4c802 authored by Juan Lang's avatar Juan Lang Committed by Alexandre Julliard

winhttp: If the default proxy settings are not found, delete the bogus ones after test.

parent 09ee8233
...@@ -867,7 +867,10 @@ static void set_default_proxy_reg_value( BYTE *buf, DWORD len, DWORD type ) ...@@ -867,7 +867,10 @@ static void set_default_proxy_reg_value( BYTE *buf, DWORD len, DWORD type )
KEY_WRITE, NULL, &key, NULL ); KEY_WRITE, NULL, &key, NULL );
if (!l) if (!l)
{ {
RegSetValueExW( key, WinHttpSettings, 0, type, buf, len ); if (len)
RegSetValueExW( key, WinHttpSettings, 0, type, buf, len );
else
RegDeleteValueW( key, WinHttpSettings );
RegCloseKey( key ); RegCloseKey( key );
} }
} }
......
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