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
c2c0e4fe
Commit
c2c0e4fe
authored
May 31, 2018
by
Zebediah Figura
Committed by
Alexandre Julliard
Jun 01, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dbghelp: Don't enforce child architecture in elf_map_file().
Signed-off-by:
Zebediah Figura
<
zfigura@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
82616091
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
6 deletions
+1
-6
elf_module.c
dlls/dbghelp/elf_module.c
+1
-6
No files found.
dlls/dbghelp/elf_module.c
View file @
c2c0e4fe
...
...
@@ -346,12 +346,7 @@ static BOOL elf_map_file(struct elf_map_file_data* emfd, struct image_file_map*
/* and check for an ELF header */
if
(
memcmp
(
fmap
->
u
.
elf
.
elfhdr
.
e_ident
,
elf_signature
,
sizeof
(
elf_signature
)))
goto
done
;
/* and check 32 vs 64 size according to current machine */
#ifdef _WIN64
if
(
fmap
->
u
.
elf
.
elfhdr
.
e_ident
[
EI_CLASS
]
!=
ELFCLASS64
)
goto
done
;
#else
if
(
fmap
->
u
.
elf
.
elfhdr
.
e_ident
[
EI_CLASS
]
!=
ELFCLASS32
)
goto
done
;
#endif
fmap
->
addr_size
=
fmap
->
u
.
elf
.
elfhdr
.
e_ident
[
EI_CLASS
]
==
ELFCLASS64
?
64
:
32
;
fmap
->
u
.
elf
.
sect
=
HeapAlloc
(
GetProcessHeap
(),
0
,
fmap
->
u
.
elf
.
elfhdr
.
e_shnum
*
sizeof
(
fmap
->
u
.
elf
.
sect
[
0
]));
...
...
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