From: Michael Müller michael@fds-team.de
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=42024 --- programs/wineboot/Makefile.in | 2 +- programs/wineboot/wineboot.c | 13 +++++++++++++ 2 files changed, 14 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 36e715c5f19..1e2a7b7b4c4 100644 --- a/programs/wineboot/wineboot.c +++ b/programs/wineboot/wineboot.c @@ -78,6 +78,7 @@ #include <shlwapi.h> #include <shellapi.h> #include <setupapi.h> +#include <wininet.h> #include <newdev.h> #include "resource.h"
@@ -1051,6 +1052,17 @@ static void create_known_dlls(void) RegCloseKey( key ); }
+/* Some broken applications expect the ProxyEnable registry value to exist. + * This value is automatically created by wininet when initializing. + * This value is not initialized for new users on Windows, but it is created + * for the admin user. */ +static void initialize_internet(void) +{ + HINTERNET inet; + + if ((inet = InternetOpenW( L"Wine", INTERNET_OPEN_TYPE_PRECONFIG, NULL, NULL, 0 ))) + InternetCloseHandle( inet ); +}
/* Performs the rename operations dictated in %SystemRoot%\Wininit.ini. * Returns FALSE if there was an error, or otherwise if all is ok. @@ -1892,6 +1904,7 @@ int __cdecl main( int argc, char *argv[] )
create_volatile_environment_registry_key(); create_known_dlls(); + initialize_internet();
ProcessRunKeys( HKEY_LOCAL_MACHINE, L"RunOnce", TRUE, TRUE );
This merge request was approved by Elizabeth Figura.