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
a4269c8e
Commit
a4269c8e
authored
Dec 21, 2007
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32: Store the initial directory as a full path in the process parameters.
parent
e55854dd
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
2 deletions
+13
-2
process.c
dlls/kernel32/process.c
+13
-2
No files found.
dlls/kernel32/process.c
View file @
a4269c8e
...
...
@@ -1175,7 +1175,7 @@ static RTL_USER_PROCESS_PARAMETERS *create_user_params( LPCWSTR filename, LPCWST
const
STARTUPINFOW
*
startup
)
{
RTL_USER_PROCESS_PARAMETERS
*
params
;
UNICODE_STRING
image_str
,
cmdline_str
,
curdir_str
,
desktop
,
title
,
runtime
;
UNICODE_STRING
image_str
,
cmdline_str
,
curdir_str
,
desktop
,
title
,
runtime
,
newdir
;
NTSTATUS
status
;
WCHAR
buffer
[
MAX_PATH
];
...
...
@@ -1186,7 +1186,17 @@ static RTL_USER_PROCESS_PARAMETERS *create_user_params( LPCWSTR filename, LPCWST
RtlInitUnicodeString
(
&
image_str
,
buffer
);
RtlInitUnicodeString
(
&
cmdline_str
,
cmdline
);
if
(
cur_dir
)
RtlInitUnicodeString
(
&
curdir_str
,
cur_dir
);
newdir
.
Buffer
=
NULL
;
if
(
cur_dir
)
{
if
(
RtlDosPathNameToNtPathName_U
(
cur_dir
,
&
newdir
,
NULL
,
NULL
))
{
/* skip \??\ prefix */
curdir_str
.
Buffer
=
newdir
.
Buffer
+
4
;
curdir_str
.
Length
=
newdir
.
Length
-
4
*
sizeof
(
WCHAR
);
}
else
cur_dir
=
NULL
;
}
if
(
startup
->
lpDesktop
)
RtlInitUnicodeString
(
&
desktop
,
startup
->
lpDesktop
);
if
(
startup
->
lpTitle
)
RtlInitUnicodeString
(
&
title
,
startup
->
lpTitle
);
if
(
startup
->
lpReserved2
&&
startup
->
cbReserved2
)
...
...
@@ -1203,6 +1213,7 @@ static RTL_USER_PROCESS_PARAMETERS *create_user_params( LPCWSTR filename, LPCWST
startup
->
lpDesktop
?
&
desktop
:
NULL
,
NULL
,
(
startup
->
lpReserved2
&&
startup
->
cbReserved2
)
?
&
runtime
:
NULL
);
RtlFreeUnicodeString
(
&
newdir
);
if
(
status
!=
STATUS_SUCCESS
)
{
SetLastError
(
RtlNtStatusToDosError
(
status
)
);
...
...
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