Commit a2a29e22 authored by Alexandre Julliard's avatar Alexandre Julliard

kernel: Fail more gracefully when loading a builtin exe didn't work.

parent 6d32c42c
...@@ -1088,9 +1088,10 @@ void __wine_kernel_init(void) ...@@ -1088,9 +1088,10 @@ void __wine_kernel_init(void)
if (!main_exe_file) /* no file handle -> Winelib app */ if (!main_exe_file) /* no file handle -> Winelib app */
{ {
TRACE( "starting Winelib app %s\n", debugstr_w(main_exe_name) ); TRACE( "starting Winelib app %s\n", debugstr_w(main_exe_name) );
if (open_builtin_exe_file( main_exe_name, error, sizeof(error), 0, &file_exists )) if (open_builtin_exe_file( main_exe_name, error, sizeof(error), 0, &file_exists ) &&
NtCurrentTeb()->Peb->ImageBaseAddress)
goto found; goto found;
MESSAGE( "wine: cannot open builtin library for %s: %s\n", MESSAGE( "wine: cannot open builtin exe for %s: %s\n",
debugstr_w(main_exe_name), error ); debugstr_w(main_exe_name), error );
ExitProcess(1); ExitProcess(1);
} }
......
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