Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
94d19eff
Commit
94d19eff
authored
Apr 27, 2021
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Use a 64-bit machine for IL executables.
Wine-Bug:
https://bugs.winehq.org/show_bug.cgi?id=51067
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
8d50c346
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletion
+13
-1
mapping.c
server/mapping.c
+13
-1
No files found.
server/mapping.c
View file @
94d19eff
...
...
@@ -349,6 +349,18 @@ struct memory_view *get_exe_view( struct process *process )
return
LIST_ENTRY
(
list_head
(
&
process
->
views
),
struct
memory_view
,
entry
);
}
static
void
set_process_machine
(
struct
process
*
process
,
struct
memory_view
*
view
)
{
unsigned
short
machine
=
view
->
image
.
machine
;
if
(
machine
==
IMAGE_FILE_MACHINE_I386
&&
(
view
->
image
.
image_flags
&
IMAGE_FLAGS_ComPlusNativeReady
))
{
if
(
is_machine_supported
(
IMAGE_FILE_MACHINE_AMD64
))
machine
=
IMAGE_FILE_MACHINE_AMD64
;
else
if
(
is_machine_supported
(
IMAGE_FILE_MACHINE_ARM64
))
machine
=
IMAGE_FILE_MACHINE_ARM64
;
}
process
->
machine
=
machine
;
}
/* add a view to the process list */
static
void
add_process_view
(
struct
thread
*
thread
,
struct
memory_view
*
view
)
{
...
...
@@ -362,7 +374,7 @@ static void add_process_view( struct thread *thread, struct memory_view *view )
else
if
(
!
(
view
->
image
.
image_charact
&
IMAGE_FILE_DLL
))
{
/* main exe */
process
->
machine
=
view
->
image
.
machine
;
set_process_machine
(
process
,
view
)
;
list_add_head
(
&
process
->
views
,
&
view
->
entry
);
if
(
get_view_nt_name
(
view
,
&
name
)
&&
(
process
->
image
=
memdup
(
name
.
str
,
name
.
len
)))
process
->
imagelen
=
name
.
len
;
...
...
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