Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
horsicq committed Sep 12, 2020
1 parent 2492f2b commit 70c3f53
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions xelf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2858,13 +2858,13 @@ quint64 XELF::getElf_Phdr_vaddr(quint32 nIndex, QList<XELF_DEF::Elf_Phdr> *pList
return nResult;
}

quint64 XELF::getElf_Phdr_paddr(quint32 nIndex, QList<XELF_DEF::Elf_Phdr> *pList)
quint64 XELF::getElf_Phdr_paddr(quint32 nIndex, QList<XELF_DEF::Elf_Phdr> *pListProgramHeaders)
{
quint64 nResult=0;

if(nIndex<(quint32)pList->count())
if(nIndex<(quint32)pListProgramHeaders->count())
{
nResult=pList->at(nIndex).p_paddr;
nResult=pListProgramHeaders->at(nIndex).p_paddr;
}

return nResult;
Expand Down
2 changes: 1 addition & 1 deletion xelf.h
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ class XELF : public XBinary
quint32 getElf_Phdr_type(quint32 nIndex,QList<XELF_DEF::Elf_Phdr> *pListProgramHeaders);
quint64 getElf_Phdr_offset(quint32 nIndex,QList<XELF_DEF::Elf_Phdr> *pListProgramHeaders);
quint64 getElf_Phdr_vaddr(quint32 nIndex,QList<XELF_DEF::Elf_Phdr> *pListProgramHeaders);
quint64 getElf_Phdr_paddr(quint32 nIndex,QList<XELF_DEF::Elf_Phdr> *pList);
quint64 getElf_Phdr_paddr(quint32 nIndex,QList<XELF_DEF::Elf_Phdr> *pListProgramHeaders);
quint64 getElf_Phdr_filesz(quint32 nIndex,QList<XELF_DEF::Elf_Phdr> *pList);
quint64 getElf_Phdr_memsz(quint32 nIndex,QList<XELF_DEF::Elf_Phdr> *pList);
quint32 getElf_Phdr_flags(quint32 nIndex,QList<XELF_DEF::Elf_Phdr> *pList);
Expand Down

0 comments on commit 70c3f53

Please sign in to comment.