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
66ab2c50
Commit
66ab2c50
authored
Mar 31, 2020
by
Jacek Caban
Committed by
Alexandre Julliard
Mar 31, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dbghelp: Inline ELF magic constants.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
7b12b184
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
elf_module.c
dlls/dbghelp/elf_module.c
+2
-3
No files found.
dlls/dbghelp/elf_module.c
View file @
66ab2c50
...
...
@@ -387,7 +387,6 @@ static BOOL elf_map_shdr(struct elf_map_file_data* emfd, struct image_file_map*
*/
static
BOOL
elf_map_file
(
struct
elf_map_file_data
*
emfd
,
struct
image_file_map
*
fmap
)
{
static
const
BYTE
elf_signature
[
4
]
=
{
ELFMAG0
,
ELFMAG1
,
ELFMAG2
,
ELFMAG3
};
unsigned
int
i
;
size_t
tmp
,
page_mask
=
sysinfo
.
dwPageSize
-
1
;
WCHAR
*
dos_path
;
...
...
@@ -419,10 +418,10 @@ static BOOL elf_map_file(struct elf_map_file_data* emfd, struct image_file_map*
return
FALSE
;
/* and check for an ELF header */
if
(
memcmp
(
e_ident
,
elf_signature
,
sizeof
(
elf_signature
)
))
if
(
memcmp
(
e_ident
,
"
\177
ELF"
,
4
))
return
FALSE
;
fmap
->
addr_size
=
e_ident
[
EI_CLASS
]
==
ELFCLASS64
?
64
:
32
;
fmap
->
addr_size
=
e_ident
[
4
]
==
2
/* ELFCLASS64 */
?
64
:
32
;
if
(
fmap
->
addr_size
==
32
)
{
...
...
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