Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
86a7b45a
Commit
86a7b45a
authored
Dec 15, 2010
by
Hans Leidekker
Committed by
Alexandre Julliard
Dec 15, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wineboot: Set the USERDOMAIN environment variable.
Microsoft Robotics Developer Studio installer needs this.
parent
215b69e3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
wineboot.c
programs/wineboot/wineboot.c
+2
-0
No files found.
programs/wineboot/wineboot.c
View file @
86a7b45a
...
...
@@ -318,6 +318,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
};
...
...
@@ -359,6 +360,7 @@ static void create_volatile_environment_registry_key(void)
size
=
(
sizeof
(
computername
)
/
sizeof
(
WCHAR
))
-
2
;
if
(
GetComputerNameW
(
&
computername
[
2
],
&
size
))
{
set_reg_value
(
hkey
,
UserDomainW
,
&
computername
[
2
]
);
computername
[
0
]
=
computername
[
1
]
=
'\\'
;
set_reg_value
(
hkey
,
LogonServerW
,
computername
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment