mirror of
https://github.com/reactos/reactos.git
synced 2024-11-28 05:53:31 +08:00
[WINESYNC] dbghelp: Inline ELF magic constants.
Signed-off-by: Jacek Caban <jacek@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org> wine commit id 66ab2c503de6d39f1a0256d66511da05d326ac5e by Jacek Caban <jacek@codeweavers.com>
This commit is contained in:
parent
9e0f62624e
commit
345ffb9a3c
@ -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, "\177ELF", 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)
|
||||
{
|
||||
|
@ -4,4 +4,4 @@ files:
|
||||
include/dbghelp.h: sdk/include/psdk/dbghelp.h
|
||||
include/wine/mscvpdb.h: sdk/include/reactos/wine/mscvpdb.h
|
||||
tags:
|
||||
wine: 7b12b1849c711476b64b3ed6bc60805ff8f2715f
|
||||
wine: 66ab2c503de6d39f1a0256d66511da05d326ac5e
|
||||
|
Loading…
Reference in New Issue
Block a user