dbghelp: If the caller didn't provide a module load address use the segment start address.

This commit is contained in:
Ken Thomases 2014-07-07 15:35:44 -05:00 committed by Alexandre Julliard
parent 403d7c1dee
commit 1f2680f5f3
1 changed files with 2 additions and 0 deletions

View File

@ -1020,6 +1020,8 @@ static BOOL macho_load_file(struct process* pcs, const WCHAR* filename,
struct module_format* modfmt =
HeapAlloc(GetProcessHeap(), 0, sizeof(struct module_format) + sizeof(struct macho_module_info));
if (!modfmt) goto leave;
if (!load_addr)
load_addr = fmap.segs_start;
macho_info->module = module_new(pcs, filename, DMT_MACHO, FALSE, load_addr,
fmap.segs_size, 0, calc_crc32(fmap.fd));
if (!macho_info->module)