ntdll: Force executing IL-only binaries on the native machine.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=51101
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alexandre Julliard 2021-05-07 12:44:59 +02:00
parent 1f35115360
commit e9bc48e90a
1 changed files with 2 additions and 0 deletions

View File

@ -1954,6 +1954,8 @@ static RTL_USER_PROCESS_PARAMETERS *build_initial_params(void)
if (!status) if (!status)
{ {
if (main_image_info.ImageCharacteristics & IMAGE_FILE_DLL) status = STATUS_INVALID_IMAGE_FORMAT; if (main_image_info.ImageCharacteristics & IMAGE_FILE_DLL) status = STATUS_INVALID_IMAGE_FORMAT;
if (main_image_info.ImageFlags & IMAGE_FLAGS_ComPlusNativeReady)
main_image_info.Machine = native_machine;
if (main_image_info.Machine != current_machine) status = STATUS_INVALID_IMAGE_FORMAT; if (main_image_info.Machine != current_machine) status = STATUS_INVALID_IMAGE_FORMAT;
} }