Module: wine Branch: master Commit: 1f5ff75107e73e6432cddf83215dae79660b23d4 URL: http://source.winehq.org/git/wine.git/?a=commit;h=1f5ff75107e73e6432cddf8321...
Author: Eric Pouech eric.pouech@orange.fr Date: Sat Jun 26 22:53:55 2010 +0200
dbghelp: Fix the localization of section table while loading COFF information.
---
dlls/dbghelp/pe_module.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/dbghelp/pe_module.c b/dlls/dbghelp/pe_module.c index cd2f248..7f20ea8 100644 --- a/dlls/dbghelp/pe_module.c +++ b/dlls/dbghelp/pe_module.c @@ -409,7 +409,7 @@ static BOOL pe_load_coff_symbol_table(struct module* module) isym = (const IMAGE_SYMBOL*)((const char*)mapping + fmap->u.pe.ntheader.FileHeader.PointerToSymbolTable); /* FIXME: no way to get strtable size */ strtable = (const char*)&isym[numsym]; - sect = IMAGE_FIRST_SECTION(&fmap->u.pe.ntheader); + sect = IMAGE_FIRST_SECTION(RtlImageNtHeader((HMODULE)mapping));
for (i = 0; i < numsym; i+= naux, isym += naux) {