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
5493b772
Commit
5493b772
authored
Jan 31, 2009
by
Marcus Meissner
Committed by
Alexandre Julliard
Feb 02, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32: Handle username conversion failure (Coverity).
parent
2c7ac136
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
process.c
dlls/kernel32/process.c
+5
-2
No files found.
dlls/kernel32/process.c
View file @
5493b772
...
...
@@ -495,6 +495,7 @@ static void set_additional_environment(void)
MultiByteToWideChar
(
CP_UNIXCP
,
0
,
name
,
-
1
,
user_name
,
len
);
SetEnvironmentVariableW
(
usernameW
,
user_name
);
}
else
WARN
(
"user name %s not convertible.
\n
"
,
debugstr_a
(
name
)
);
/* set the USERPROFILE and ALLUSERSPROFILE variables */
...
...
@@ -522,8 +523,10 @@ static void set_additional_environment(void)
strcpyW
(
value
,
profile_dir
);
p
=
value
+
strlenW
(
value
);
if
(
p
>
value
&&
p
[
-
1
]
!=
'\\'
)
*
p
++
=
'\\'
;
strcpyW
(
p
,
user_name
);
SetEnvironmentVariableW
(
userprofileW
,
value
);
if
(
user_name
)
{
strcpyW
(
p
,
user_name
);
SetEnvironmentVariableW
(
userprofileW
,
value
);
}
if
(
all_users_dir
)
{
strcpyW
(
p
,
all_users_dir
);
...
...
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