Module: wine Branch: master Commit: e5f4c802dcf94ef8b608ee683354bd7d6ae4834c URL: http://source.winehq.org/git/wine.git/?a=commit;h=e5f4c802dcf94ef8b608ee6833...
Author: Juan Lang juan.lang@gmail.com Date: Tue Jul 21 12:23:04 2009 -0700
winhttp: If the default proxy settings are not found, delete the bogus ones after test.
---
dlls/winhttp/tests/winhttp.c | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/dlls/winhttp/tests/winhttp.c b/dlls/winhttp/tests/winhttp.c index bce91fe..76e08e0 100644 --- a/dlls/winhttp/tests/winhttp.c +++ b/dlls/winhttp/tests/winhttp.c @@ -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 ); } }