Hans Leidekker : wineboot: Set the USERDOMAIN environment variable.
Alexandre Julliard
julliard at winehq.org
Thu Apr 7 07:36:45 CDT 2011
Module: wine
Branch: stable
Commit: 6106dd8a26731a2c19e20644cb56226e3ee9a776
URL: http://source.winehq.org/git/wine.git/?a=commit;h=6106dd8a26731a2c19e20644cb56226e3ee9a776
Author: Hans Leidekker <hans at codeweavers.com>
Date: Wed Dec 15 09:09:10 2010 +0100
wineboot: Set the USERDOMAIN environment variable.
Microsoft Robotics Developer Studio installer needs this.
(cherry picked from commit 86a7b45a7a43c8357f5d70f3429899d00b54e0a0)
---
programs/wineboot/wineboot.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/programs/wineboot/wineboot.c b/programs/wineboot/wineboot.c
index 02d3746..3f16445 100644
--- a/programs/wineboot/wineboot.c
+++ b/programs/wineboot/wineboot.c
@@ -309,6 +309,7 @@ static void create_volatile_environment_registry_key(void)
static const WCHAR LogonServerW[] = {'L','O','G','O','N','S','E','R','V','E','R',0};
static const WCHAR SessionNameW[] = {'S','E','S','S','I','O','N','N','A','M','E',0};
static const WCHAR UserNameW[] = {'U','S','E','R','N','A','M','E',0};
+ static const WCHAR UserDomainW[] = {'U','S','E','R','D','O','M','A','I','N',0};
static const WCHAR UserProfileW[] = {'U','S','E','R','P','R','O','F','I','L','E',0};
static const WCHAR ConsoleW[] = {'C','o','n','s','o','l','e',0};
static const WCHAR EmptyW[] = {0};
@@ -350,6 +351,7 @@ static void create_volatile_environment_registry_key(void)
size = sizeof(computername) - 2;
if (GetComputerNameW(&computername[2], &size))
{
+ set_reg_value( hkey, UserDomainW, &computername[2] );
computername[0] = computername[1] = '\\';
set_reg_value( hkey, LogonServerW, computername );
}
More information about the wine-cvs
mailing list