Commit e31dd6db authored by Alexandre Julliard's avatar Alexandre Julliard

kernel32: Only change the Unix current after exec_process to make sure it's inherited properly.

parent 01947e08
......@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment