Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
e404d7fe
Commit
e404d7fe
authored
Oct 27, 2014
by
André Hentschel
Committed by
Alexandre Julliard
Oct 28, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32: Set COMPUTERNAME environment variable.
parent
5e13e7f8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
process.c
dlls/kernel32/process.c
+7
-0
No files found.
dlls/kernel32/process.c
View file @
e404d7fe
...
@@ -512,13 +512,20 @@ static void set_additional_environment(void)
...
@@ -512,13 +512,20 @@ static void set_additional_environment(void)
'P'
,
'r'
,
'o'
,
'f'
,
'i'
,
'l'
,
'e'
,
'L'
,
'i'
,
's'
,
't'
,
0
};
'P'
,
'r'
,
'o'
,
'f'
,
'i'
,
'l'
,
'e'
,
'L'
,
'i'
,
's'
,
't'
,
0
};
static
const
WCHAR
profiles_valueW
[]
=
{
'P'
,
'r'
,
'o'
,
'f'
,
'i'
,
'l'
,
'e'
,
's'
,
'D'
,
'i'
,
'r'
,
'e'
,
'c'
,
't'
,
'o'
,
'r'
,
'y'
,
0
};
static
const
WCHAR
profiles_valueW
[]
=
{
'P'
,
'r'
,
'o'
,
'f'
,
'i'
,
'l'
,
'e'
,
's'
,
'D'
,
'i'
,
'r'
,
'e'
,
'c'
,
't'
,
'o'
,
'r'
,
'y'
,
0
};
static
const
WCHAR
all_users_valueW
[]
=
{
'A'
,
'l'
,
'l'
,
'U'
,
's'
,
'e'
,
'r'
,
's'
,
'P'
,
'r'
,
'o'
,
'f'
,
'i'
,
'l'
,
'e'
,
'\0'
};
static
const
WCHAR
all_users_valueW
[]
=
{
'A'
,
'l'
,
'l'
,
'U'
,
's'
,
'e'
,
'r'
,
's'
,
'P'
,
'r'
,
'o'
,
'f'
,
'i'
,
'l'
,
'e'
,
'\0'
};
static
const
WCHAR
computernameW
[]
=
{
'C'
,
'O'
,
'M'
,
'P'
,
'U'
,
'T'
,
'E'
,
'R'
,
'N'
,
'A'
,
'M'
,
'E'
,
0
};
static
const
WCHAR
allusersW
[]
=
{
'A'
,
'L'
,
'L'
,
'U'
,
'S'
,
'E'
,
'R'
,
'S'
,
'P'
,
'R'
,
'O'
,
'F'
,
'I'
,
'L'
,
'E'
,
0
};
static
const
WCHAR
allusersW
[]
=
{
'A'
,
'L'
,
'L'
,
'U'
,
'S'
,
'E'
,
'R'
,
'S'
,
'P'
,
'R'
,
'O'
,
'F'
,
'I'
,
'L'
,
'E'
,
0
};
OBJECT_ATTRIBUTES
attr
;
OBJECT_ATTRIBUTES
attr
;
UNICODE_STRING
nameW
;
UNICODE_STRING
nameW
;
WCHAR
*
profile_dir
=
NULL
,
*
all_users_dir
=
NULL
;
WCHAR
*
profile_dir
=
NULL
,
*
all_users_dir
=
NULL
;
WCHAR
buf
[
MAX_COMPUTERNAME_LENGTH
];
HANDLE
hkey
;
HANDLE
hkey
;
DWORD
len
;
DWORD
len
;
/* ComputerName */
len
=
sizeof
(
buf
)
/
sizeof
(
WCHAR
);
if
(
GetComputerNameW
(
buf
,
&
len
))
SetEnvironmentVariableW
(
computernameW
,
buf
);
/* set the ALLUSERSPROFILE variables */
/* set the ALLUSERSPROFILE variables */
attr
.
Length
=
sizeof
(
attr
);
attr
.
Length
=
sizeof
(
attr
);
...
...
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