Eric Pouech : dbghelp: Fix the localization of section table while loading COFF information.
Alexandre Julliard
julliard at winehq.org
Mon Jun 28 11:01:17 CDT 2010
Module: wine
Branch: master
Commit: 1f5ff75107e73e6432cddf83215dae79660b23d4
URL: http://source.winehq.org/git/wine.git/?a=commit;h=1f5ff75107e73e6432cddf83215dae79660b23d4
Author: Eric Pouech <eric.pouech at 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)
{
More information about the wine-cvs
mailing list