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:
Jacek Caban 2020-03-20 18:09:25 +01:00 committed by Alexandre Julliard
parent 7544b9f6fb
commit 1ece841d93
2 changed files with 2 additions and 2 deletions

View File

@ -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];

View File

@ -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;