Commit 1ece841d authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

dbghelp: Use page size from sysinfo.

parent 7544b9f6
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment