Ken Thomases : dbghelp: If the caller didn' t provide a module load address use the segment start address.
Alexandre Julliard
julliard at wine.codeweavers.com
Mon Jul 7 16:09:52 CDT 2014
Module: wine
Branch: master
Commit: 1f2680f5f39f14c3160d689a5237e365334938d5
URL: http://source.winehq.org/git/wine.git/?a=commit;h=1f2680f5f39f14c3160d689a5237e365334938d5
Author: Ken Thomases <ken at codeweavers.com>
Date: Mon Jul 7 15:35:44 2014 -0500
dbghelp: If the caller didn't provide a module load address use the segment start address.
---
dlls/dbghelp/macho_module.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/dlls/dbghelp/macho_module.c b/dlls/dbghelp/macho_module.c
index c6270c8..ebea4fd 100644
--- a/dlls/dbghelp/macho_module.c
+++ b/dlls/dbghelp/macho_module.c
@@ -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)
More information about the wine-cvs
mailing list