David Koolhoven : ntdll: Don't try to convert module to 64-bit if it doesn't contain code.
Alexandre Julliard
julliard at winehq.org
Wed Feb 10 15:34:01 CST 2021
Module: wine
Branch: master
Commit: 4f7a4146cd71c56fdb03412424ebbf1c91b69a94
URL: https://source.winehq.org/git/wine.git/?a=commit;h=4f7a4146cd71c56fdb03412424ebbf1c91b69a94
Author: David Koolhoven <david at koolhoven-home.net>
Date: Wed Feb 10 00:24:49 2021 -0500
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 at koolhoven-home.net>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/ntdll/loader.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/dlls/ntdll/loader.c b/dlls/ntdll/loader.c
index 6b76c6f406e..40efd46d3c7 100644
--- a/dlls/ntdll/loader.c
+++ b/dlls/ntdll/loader.c
@@ -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 );
More information about the wine-cvs
mailing list