From 5acf1510fbe4f17d35443666ddd9d123de253e1c Mon Sep 17 00:00:00 2001 From: Ken Thomases Date: Mon, 7 Jul 2014 15:36:14 -0500 Subject: [PATCH] dbghelp: Ignore the __PAGEZERO segment. It made it seem as though the wineloader always started at address 0. Issue identified by Jacek Caban. --- dlls/dbghelp/macho_module.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dlls/dbghelp/macho_module.c b/dlls/dbghelp/macho_module.c index ebea4fda4df..2eb2b94a614 100644 --- a/dlls/dbghelp/macho_module.c +++ b/dlls/dbghelp/macho_module.c @@ -398,6 +398,11 @@ static int macho_accum_segs_range(struct macho_file_map* fmap, TRACE("Ignoring special Wine segment %s\n", debugstr_an(sc->segname, sizeof(sc->segname))); return 0; } + if (!strncmp(sc->segname, "__PAGEZERO", 10)) + { + TRACE("Ignoring __PAGEZERO segment\n"); + return 0; + } /* If this segment starts before previously-known earliest, record * new earliest. */ -- 2.11.4.GIT