ntdll: Don't try to convert module to 64-bit if it doesn't contain code.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=50647
Signed-off-by: David Koolhoven <david@koolhoven-home.net>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
David Koolhoven 2021-02-10 00:24:49 -05:00 committed by Alexandre Julliard
parent fb9ec02e06
commit 4f7a4146cd
1 changed files with 1 additions and 0 deletions

View File

@ -1984,6 +1984,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 (!info->ImageContainsCode) return TRUE; /* no need to convert */
TRACE( "%p\n", module );