Module: wine Branch: master Commit: e9bc48e90a7f31820e3c1171cc6bbdc13a650b8f URL: https://source.winehq.org/git/wine.git/?a=commit;h=e9bc48e90a7f31820e3c1171c...
Author: Alexandre Julliard julliard@winehq.org Date: Fri May 7 12:44:59 2021 +0200
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
---
dlls/ntdll/unix/env.c | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/dlls/ntdll/unix/env.c b/dlls/ntdll/unix/env.c index 3ac1ed9ab63..5d8c14625f9 100644 --- a/dlls/ntdll/unix/env.c +++ b/dlls/ntdll/unix/env.c @@ -1954,6 +1954,8 @@ static RTL_USER_PROCESS_PARAMETERS *build_initial_params(void) if (!status) { 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; }