Skip to content

Commit

Permalink
[libromdata] EXEPrivate::addFields_PE_Export(): Remove duplicate vari…
Browse files Browse the repository at this point in the history
…able
  • Loading branch information
DankRank committed Feb 4, 2025
1 parent c397cfb commit 6caaca5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/libromdata/Other/EXE_PE.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -833,10 +833,9 @@ int EXEPrivate::addFields_PE_Export(void)
ents.reserve(std::max(szExpAddrTbl, szExpNameTbl));

// Read address table
const uint32_t expDirTbl_base = le32_to_cpu(pExpDirTbl->Base);
for (uint32_t i = 0; i < szExpAddrTbl; i++) {
ExportEntry ent;
ent.ordinal = expDirTbl_base + i;
ent.ordinal = ordinalBase + i;
ent.hint = -1;
ent.vaddr = le32_to_cpu(expAddrTbl[i]);
ent.paddr = pe_vaddr_to_paddr(ent.vaddr, 0);
Expand Down

0 comments on commit 6caaca5

Please sign in to comment.