[PATCH 1/3] [DbgHelp]: fix the localization of section table while loading COFF information

Eric Pouech eric.pouech at orange.fr
Sat Jun 26 15:53:55 CDT 2010




A+
---

 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-patches mailing list