Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
horsicq committed Sep 15, 2020
1 parent ccb83fb commit 76be25d
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 @@ -3775,15 +3775,15 @@ bool XELF::isSectionNamePresent(QString sSectionName)
return isSectionNamePresent(sSectionName,&listSR);
}

bool XELF::isSectionNamePresent(QString sSectionName, QList<XELF::SECTION_RECORD> *pListSections)
bool XELF::isSectionNamePresent(QString sSectionName, QList<XELF::SECTION_RECORD> *pListSectionRecords)
{
bool bResult=false;

int nNumberOfSections=pListSections->count();
int nNumberOfSections=pListSectionRecords->count();

for(int i=0; i<nNumberOfSections; i++)
{
if(pListSections->at(i).sName==sSectionName)
if(pListSectionRecords->at(i).sName==sSectionName)
{
bResult=true;
break;
Expand Down
2 changes: 1 addition & 1 deletion xelf.h
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ class XELF : public XBinary

static QList<SECTION_RECORD> getSectionRecords(QList<XELF_DEF::Elf_Shdr> *pList,bool bIsImage,QByteArray *pbaSectionTable);
bool isSectionNamePresent(QString sSectionName);
static bool isSectionNamePresent(QString sSectionName,QList<SECTION_RECORD> *pListSections);
static bool isSectionNamePresent(QString sSectionName,QList<SECTION_RECORD> *pListSectionRecords);
qint32 getSectionNumber(QString sSectionName);
static qint32 getSectionNumber(QString sSectionName,QList<SECTION_RECORD> *pListSections);
static SECTION_RECORD getSectionRecord(QString sSectionName,QList<SECTION_RECORD> *pListSections);
Expand Down

0 comments on commit 76be25d

Please sign in to comment.