Commit 20e0fd6e authored by Alexandre Julliard's avatar Alexandre Julliard

ntdll: Delay ntdll.dll loading until more initialization is done.

parent 48e88074
...@@ -1577,6 +1577,8 @@ static void start_main_thread(void) ...@@ -1577,6 +1577,8 @@ static void start_main_thread(void)
init_cpu_info(); init_cpu_info();
init_files(); init_files();
NtCreateKeyedEvent( &keyed_event, GENERIC_READ | GENERIC_WRITE, NULL, 0 ); NtCreateKeyedEvent( &keyed_event, GENERIC_READ | GENERIC_WRITE, NULL, 0 );
load_ntdll();
load_libwine();
status = p__wine_set_unix_funcs( NTDLL_UNIXLIB_VERSION, &unix_funcs ); status = p__wine_set_unix_funcs( NTDLL_UNIXLIB_VERSION, &unix_funcs );
if (status) exec_process( status ); if (status) exec_process( status );
server_init_process_done(); server_init_process_done();
...@@ -1785,10 +1787,7 @@ void __wine_main( int argc, char *argv[], char *envp[] ) ...@@ -1785,10 +1787,7 @@ void __wine_main( int argc, char *argv[], char *envp[] )
#endif #endif
virtual_init(); virtual_init();
load_ntdll();
init_environment( argc, argv, envp ); init_environment( argc, argv, envp );
load_libwine();
#ifdef __APPLE__ #ifdef __APPLE__
apple_main_thread(); apple_main_thread();
......
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