dbghelp: Use page size from sysinfo.
Signed-off-by: Jacek Caban <jacek@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
7544b9f6fb
commit
1ece841d93
|
@ -403,7 +403,7 @@ static BOOL elf_map_file(struct elf_map_file_data* emfd, struct image_file_map*
|
|||
{
|
||||
static const BYTE elf_signature[4] = { ELFMAG0, ELFMAG1, ELFMAG2, ELFMAG3 };
|
||||
unsigned int i;
|
||||
size_t tmp, page_mask = sysconf( _SC_PAGESIZE ) - 1;
|
||||
size_t tmp, page_mask = sysinfo.dwPageSize - 1;
|
||||
WCHAR *dos_path;
|
||||
unsigned char e_ident[EI_NIDENT];
|
||||
|
||||
|
|
|
@ -569,7 +569,7 @@ static int macho_load_section_info(struct image_file_map* ifm, const struct load
|
|||
struct section_info* info = user;
|
||||
BOOL ignore;
|
||||
int i;
|
||||
unsigned long tmp, page_mask = sysconf( _SC_PAGESIZE ) - 1;
|
||||
unsigned long tmp, page_mask = sysinfo.dwPageSize - 1;
|
||||
uint64_t vmaddr, vmsize;
|
||||
char segname[16];
|
||||
uint32_t nsects;
|
||||
|
|
Loading…
Reference in New Issue