dbghelp: Fix the localization of section table while loading COFF information.

This commit is contained in:
Eric Pouech 2010-06-26 22:53:55 +02:00 committed by Alexandre Julliard
parent fcba272391
commit 1f5ff75107
1 changed files with 1 additions and 1 deletions

View File

@ -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)
{