Commit 679a2f53 authored by Alexandre Julliard's avatar Alexandre Julliard

ntdll: Don't try to convert binaries to 64-bit in Wow64 mode.

parent 71659970
......@@ -2118,6 +2118,7 @@ static BOOL convert_to_pe64( HMODULE module, const SECTION_IMAGE_INFORMATION *in
ULONG i, old_prot;
if (nt->OptionalHeader.Magic != IMAGE_NT_OPTIONAL_HDR32_MAGIC) return TRUE; /* already 64-bit */
if (NtCurrentTeb()->WowTebOffset) return TRUE; /* no need to convert */
if (!info->ImageContainsCode) return TRUE; /* no need to convert */
TRACE( "%p\n", module );
......@@ -2207,6 +2208,7 @@ static BOOL is_valid_binary( HANDLE file, const SECTION_IMAGE_INFORMATION *info
#else
if (info->Machine == IMAGE_FILE_MACHINE_ARM64) return TRUE;
#endif
if (NtCurrentTeb()->WowTebOffset) return TRUE;
if (!info->ImageContainsCode) return TRUE;
if (!(info->u.s.ComPlusNativeReady))
{
......
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