mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 11:43:31 +00:00
kernel32: Only change the Unix current after exec_process to make sure it's inherited properly.
This commit is contained in:
parent
01947e08da
commit
e31dd6dba1
1 changed files with 2 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue