You've already forked wine-staging
mirror of
https://gitlab.winehq.org/wine/wine-staging.git
synced 2025-09-12 18:50:20 -07:00
Added patch to create ProxyEnable key on wineprefix update.
This commit is contained in:
@@ -0,0 +1,60 @@
|
||||
From 86c5e611e38486f957c9f59c62559be15ae1a4ab Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Michael=20M=C3=BCller?= <michael@fds-team.de>
|
||||
Date: Mon, 26 Dec 2016 16:37:40 +0100
|
||||
Subject: 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 419ec16..1cacab1 100644
|
||||
--- a/programs/wineboot/Makefile.in
|
||||
+++ b/programs/wineboot/Makefile.in
|
||||
@@ -1,7 +1,7 @@
|
||||
MODULE = wineboot.exe
|
||||
APPMODE = -mconsole
|
||||
IMPORTS = uuid advapi32
|
||||
-DELAYIMPORTS = shell32 shlwapi version user32
|
||||
+DELAYIMPORTS = shell32 shlwapi version user32 wininet
|
||||
|
||||
C_SRCS = \
|
||||
shutdown.c \
|
||||
diff --git a/programs/wineboot/wineboot.c b/programs/wineboot/wineboot.c
|
||||
index 8994cab..814fe90 100644
|
||||
--- a/programs/wineboot/wineboot.c
|
||||
+++ b/programs/wineboot/wineboot.c
|
||||
@@ -82,6 +82,7 @@
|
||||
#include <shlwapi.h>
|
||||
#include <shellapi.h>
|
||||
#include <ntsecapi.h>
|
||||
+#include <wininet.h>
|
||||
#include "resource.h"
|
||||
|
||||
WINE_DEFAULT_DEBUG_CHANNEL(wineboot);
|
||||
@@ -554,6 +555,13 @@ static void create_volatile_environment_registry_key(void)
|
||||
RegCloseKey( hkey );
|
||||
}
|
||||
|
||||
+static void create_proxy_settings(void)
|
||||
+{
|
||||
+ HINTERNET inet;
|
||||
+ inet = InternetOpenA( "Wine", INTERNET_OPEN_TYPE_PRECONFIG, NULL, NULL, 0 );
|
||||
+ if (inet) InternetCloseHandle( inet );
|
||||
+}
|
||||
+
|
||||
static void create_etc_stub_files(void)
|
||||
{
|
||||
static const WCHAR drivers_etcW[] = {'\\','d','r','i','v','e','r','s','\\','e','t','c',0};
|
||||
@@ -1418,6 +1426,7 @@ int main( int argc, char *argv[] )
|
||||
if (init || update) update_wineprefix( update );
|
||||
|
||||
create_volatile_environment_registry_key();
|
||||
+ create_proxy_settings();
|
||||
|
||||
ProcessRunKeys( HKEY_LOCAL_MACHINE, RunOnceW, TRUE, TRUE );
|
||||
|
||||
--
|
||||
2.9.0
|
||||
|
3
patches/wineboot-ProxySettings/definition
Normal file
3
patches/wineboot-ProxySettings/definition
Normal file
@@ -0,0 +1,3 @@
|
||||
Fixes: [42024] Create ProxyEnable key on wineprefix update
|
||||
Depends: wineboot-drivers_etc_Stubs
|
||||
Depends: wineboot-DriveSerial
|
Reference in New Issue
Block a user