Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
679a2f53
Commit
679a2f53
authored
Dec 02, 2021
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Don't try to convert binaries to 64-bit in Wow64 mode.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
71659970
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
loader.c
dlls/ntdll/loader.c
+2
-0
No files found.
dlls/ntdll/loader.c
View file @
679a2f53
...
...
@@ -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
))
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment