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
7a8ff7fa
Commit
7a8ff7fa
authored
Oct 24, 2018
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32: Avoid setting an empty current directory in the process params.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
1a561b64
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
process.c
dlls/kernel32/process.c
+3
-2
No files found.
dlls/kernel32/process.c
View file @
7a8ff7fa
...
...
@@ -1887,8 +1887,9 @@ static RTL_USER_PROCESS_PARAMETERS *create_process_params( LPCWSTR filename, LPC
RtlInitUnicodeString
(
&
desktopW
,
startup
->
lpDesktop
);
runtimeW
.
Buffer
=
(
WCHAR
*
)
startup
->
lpReserved2
;
runtimeW
.
Length
=
runtimeW
.
MaximumLength
=
startup
->
cbReserved2
;
if
(
RtlCreateProcessParametersEx
(
&
params
,
&
imageW
,
NULL
,
&
curdirW
,
&
cmdlineW
,
envW
,
&
titleW
,
&
desktopW
,
NULL
,
&
runtimeW
,
PROCESS_PARAMS_FLAG_NORMALIZED
))
if
(
RtlCreateProcessParametersEx
(
&
params
,
&
imageW
,
NULL
,
cur_dir
?
&
curdirW
:
NULL
,
&
cmdlineW
,
envW
,
&
titleW
,
&
desktopW
,
NULL
,
&
runtimeW
,
PROCESS_PARAMS_FLAG_NORMALIZED
))
{
if
(
envW
!=
env
)
HeapFree
(
GetProcessHeap
(),
0
,
envW
);
return
NULL
;
...
...
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