Commit 1456b31e authored by Alexandre Julliard's avatar Alexandre Julliard

ntdll: Use the current machine by default to create an ARM64X process.

parent de988eee
......@@ -480,7 +480,8 @@ char *get_alternate_wineloader( WORD machine )
if (machine == current_machine) return NULL;
if (machine == IMAGE_FILE_MACHINE_AMD64) /* try the 64-bit loader */
/* try the 64-bit loader */
if (current_machine == IMAGE_FILE_MACHINE_I386 && machine == IMAGE_FILE_MACHINE_AMD64)
{
size_t len = strlen(wineloader);
......
......@@ -801,7 +801,12 @@ NTSTATUS WINAPI NtCreateUserProcess( HANDLE *process_handle_ptr, HANDLE *thread_
}
goto done;
}
if (!machine) machine = pe_info.machine;
if (!machine)
{
machine = pe_info.machine;
if (is_arm64ec() && pe_info.is_hybrid && machine == IMAGE_FILE_MACHINE_ARM64)
machine = main_image_info.Machine;
}
if (!(startup_info = create_startup_info( attr.ObjectName, process_flags, params, &pe_info, &startup_info_size )))
goto done;
env_size = get_env_size( params, &winedebug );
......
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