dbghelp: Correctly initialize module word_size field when only the eh_frame is present (and not compilation unit).

This commit is contained in:
Eric Pouech 2012-02-13 21:41:39 +01:00 committed by Alexandre Julliard
parent 8328606141
commit 611d5e470d
1 changed files with 3 additions and 0 deletions

View File

@ -3366,6 +3366,9 @@ BOOL dwarf2_parse(struct module* module, unsigned long load_offset,
dwarf2_modfmt->module->module.SourceIndexed = TRUE;
dwarf2_modfmt->module->module.Publics = TRUE;
/* set the word_size for eh_frame parsing */
dwarf2_modfmt->u.dwarf2_info->word_size = fmap->addr_size / 8;
leave:
image_unmap_section(&debug_sect);
image_unmap_section(&debug_abbrev_sect);