From cae15d2a3e900333e829a2df790a19e9fa154bbf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20M=C3=BCller?= Date: Mon, 26 Dec 2016 16:37:40 +0100 Subject: [PATCH] wineboot: Initialize proxy settings registry key. --- programs/wineboot/Makefile.in | 2 +- programs/wineboot/wineboot.c | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/programs/wineboot/Makefile.in b/programs/wineboot/Makefile.in index 0983420a91f..d346b8984b1 100644 --- a/programs/wineboot/Makefile.in +++ b/programs/wineboot/Makefile.in @@ -1,6 +1,6 @@ MODULE = wineboot.exe IMPORTS = uuid advapi32 ws2_32 kernelbase -DELAYIMPORTS = shell32 shlwapi version user32 gdi32 setupapi newdev +DELAYIMPORTS = shell32 shlwapi version user32 gdi32 setupapi newdev wininet EXTRADLLFLAGS = -mconsole diff --git a/programs/wineboot/wineboot.c b/programs/wineboot/wineboot.c index 1bce8bab33a..c90c3e1d41c 100644 --- a/programs/wineboot/wineboot.c +++ b/programs/wineboot/wineboot.c @@ -78,6 +78,7 @@ #include #include #include +#include #include #include "resource.h" @@ -1219,6 +1220,13 @@ static void create_known_dlls(void) } +static void create_proxy_settings(void) +{ + HINTERNET inet; + inet = InternetOpenA( "Wine", INTERNET_OPEN_TYPE_PRECONFIG, NULL, NULL, 0 ); + if (inet) InternetCloseHandle( inet ); +} + /* Performs the rename operations dictated in %SystemRoot%\Wininit.ini. * Returns FALSE if there was an error, or otherwise if all is ok. */ @@ -2059,6 +2067,7 @@ int __cdecl main( int argc, char *argv[] ) create_volatile_environment_registry_key(); create_known_dlls(); + create_proxy_settings(); ProcessRunKeys( HKEY_LOCAL_MACHINE, L"RunOnce", TRUE, TRUE ); -- 2.47.2