2021-09-20 16:08:59 -07:00
|
|
|
From 584eecc73a8cba537b8f50932769729a29fe7d3d Mon Sep 17 00:00:00 2001
|
2016-12-26 08:15:36 -08:00
|
|
|
From: =?UTF-8?q?Michael=20M=C3=BCller?= <michael@fds-team.de>
|
|
|
|
Date: Mon, 26 Dec 2016 16:37:40 +0100
|
2019-07-05 19:41:27 -07:00
|
|
|
Subject: [PATCH] wineboot: Initialize proxy settings registry key.
|
2016-12-26 08:15:36 -08:00
|
|
|
|
|
|
|
---
|
|
|
|
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
|
2021-09-20 16:08:59 -07:00
|
|
|
index 667f8f48702..4a1747ad047 100644
|
2016-12-26 08:15:36 -08:00
|
|
|
--- a/programs/wineboot/Makefile.in
|
|
|
|
+++ b/programs/wineboot/Makefile.in
|
2021-09-20 16:08:59 -07:00
|
|
|
@@ -1,6 +1,6 @@
|
2016-12-26 08:15:36 -08:00
|
|
|
MODULE = wineboot.exe
|
2021-04-28 15:17:58 -07:00
|
|
|
IMPORTS = uuid advapi32 ws2_32 kernelbase
|
2019-07-10 15:58:48 -07:00
|
|
|
-DELAYIMPORTS = shell32 shlwapi version user32 setupapi newdev
|
|
|
|
+DELAYIMPORTS = shell32 shlwapi version user32 setupapi newdev wininet
|
2016-12-26 08:15:36 -08:00
|
|
|
|
2021-09-20 16:08:59 -07:00
|
|
|
EXTRADLLFLAGS = -mconsole
|
2019-07-05 19:41:27 -07:00
|
|
|
|
2016-12-26 08:15:36 -08:00
|
|
|
diff --git a/programs/wineboot/wineboot.c b/programs/wineboot/wineboot.c
|
2021-09-20 16:08:59 -07:00
|
|
|
index 14943b005ef..9aab3b68e5b 100644
|
2016-12-26 08:15:36 -08:00
|
|
|
--- a/programs/wineboot/wineboot.c
|
|
|
|
+++ b/programs/wineboot/wineboot.c
|
2021-04-21 20:44:45 -07:00
|
|
|
@@ -77,6 +77,7 @@
|
|
|
|
#include <shlwapi.h>
|
2016-12-26 08:15:36 -08:00
|
|
|
#include <shellapi.h>
|
2019-07-10 15:58:48 -07:00
|
|
|
#include <setupapi.h>
|
2016-12-26 08:15:36 -08:00
|
|
|
+#include <wininet.h>
|
2019-07-10 15:58:48 -07:00
|
|
|
#include <newdev.h>
|
2016-12-26 08:15:36 -08:00
|
|
|
#include "resource.h"
|
|
|
|
|
2021-04-28 15:17:58 -07:00
|
|
|
@@ -1002,6 +1003,13 @@ static void create_volatile_environment_registry_key(void)
|
2016-12-26 08:15:36 -08:00
|
|
|
RegCloseKey( hkey );
|
|
|
|
}
|
|
|
|
|
|
|
|
+static void create_proxy_settings(void)
|
|
|
|
+{
|
|
|
|
+ HINTERNET inet;
|
|
|
|
+ inet = InternetOpenA( "Wine", INTERNET_OPEN_TYPE_PRECONFIG, NULL, NULL, 0 );
|
|
|
|
+ if (inet) InternetCloseHandle( inet );
|
|
|
|
+}
|
|
|
|
+
|
2021-04-15 22:26:25 -07:00
|
|
|
/* Performs the rename operations dictated in %SystemRoot%\Wininit.ini.
|
|
|
|
* Returns FALSE if there was an error, or otherwise if all is ok.
|
|
|
|
*/
|
2021-09-20 16:08:59 -07:00
|
|
|
@@ -1812,6 +1820,7 @@ int __cdecl main( int argc, char *argv[] )
|
2016-12-26 08:15:36 -08:00
|
|
|
if (init || update) update_wineprefix( update );
|
|
|
|
|
|
|
|
create_volatile_environment_registry_key();
|
|
|
|
+ create_proxy_settings();
|
|
|
|
|
2020-05-21 18:17:05 -07:00
|
|
|
ProcessRunKeys( HKEY_LOCAL_MACHINE, L"RunOnce", TRUE, TRUE );
|
2016-12-26 08:15:36 -08:00
|
|
|
|
|
|
|
--
|
2021-09-20 16:08:59 -07:00
|
|
|
2.33.0
|
2016-12-26 08:15:36 -08:00
|
|
|
|