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
cdaa72c7
Commit
cdaa72c7
authored
Dec 18, 2020
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Only reset the Unix current directory on removable devices.
Wine-Bug:
https://bugs.winehq.org/show_bug.cgi?id=49545
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
74aa42a5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
env.c
dlls/ntdll/unix/env.c
+0
-1
server.c
dlls/ntdll/unix/server.c
+10
-1
No files found.
dlls/ntdll/unix/env.c
View file @
cdaa72c7
...
...
@@ -1348,7 +1348,6 @@ void CDECL get_initial_directory( UNICODE_STRING *dir )
MESSAGE
(
"Warning: could not find DOS drive for current working directory '%s', "
"starting in the Windows directory.
\n
"
,
cwd
?
cwd
:
""
);
free
(
cwd
);
chdir
(
"/"
);
/* avoid locking removable devices */
}
...
...
dlls/ntdll/unix/server.c
View file @
cdaa72c7
...
...
@@ -1466,7 +1466,16 @@ void server_init_process_done(void)
IMAGE_NT_HEADERS
*
nt
=
get_exe_nt_header
();
void
*
entry
=
(
char
*
)
peb
->
ImageBaseAddress
+
nt
->
OptionalHeader
.
AddressOfEntryPoint
;
NTSTATUS
status
;
int
suspend
;
int
suspend
,
needs_close
,
unixdir
;
if
(
peb
->
ProcessParameters
->
CurrentDirectory
.
Handle
&&
!
server_get_unix_fd
(
peb
->
ProcessParameters
->
CurrentDirectory
.
Handle
,
FILE_TRAVERSE
,
&
unixdir
,
&
needs_close
,
NULL
,
NULL
))
{
fchdir
(
unixdir
);
if
(
needs_close
)
close
(
unixdir
);
}
else
chdir
(
"/"
);
/* avoid locking removable devices */
#ifdef __APPLE__
send_server_task_port
();
...
...
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