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
e31dd6db
Commit
e31dd6db
authored
Jan 31, 2012
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32: Only change the Unix current after exec_process to make sure it's inherited properly.
parent
01947e08
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
process.c
dlls/kernel32/process.c
+2
-1
No files found.
dlls/kernel32/process.c
View file @
e31dd6db
...
...
@@ -904,7 +904,6 @@ static void init_current_directory( CURDIR *cur_dir )
HeapFree
(
GetProcessHeap
(),
0
,
cwd
);
done:
if
(
!
cur_dir
->
Handle
)
chdir
(
"/"
);
/* change to root directory so as not to lock cdroms */
TRACE
(
"starting in %s %p
\n
"
,
debugstr_w
(
cur_dir
->
DosPath
.
Buffer
),
cur_dir
->
Handle
);
}
...
...
@@ -1251,6 +1250,8 @@ void CDECL __wine_kernel_init(void)
ExitProcess
(
error
);
}
if
(
!
params
->
CurrentDirectory
.
Handle
)
chdir
(
"/"
);
/* avoid locking removable devices */
LdrInitializeThunk
(
start_process
,
0
,
0
,
0
);
error
:
...
...
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