From 40eff1a65430cb844bd6dc05b46aec4e9e76117e Mon Sep 17 00:00:00 2001 From: horsicq Date: Tue, 30 Apr 2019 19:12:40 +0200 Subject: [PATCH] Fix --- binary.cpp | 3 --- elffile.cpp | 6 ++++-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/binary.cpp b/binary.cpp index ad3f0b6aaf320..2e957683c0aba 100644 --- a/binary.cpp +++ b/binary.cpp @@ -1442,8 +1442,6 @@ bool Binary::compare(QString sSignature, unsigned int nOffset) { return false; } - - } else if(sSignature.left(4)=="####") { @@ -1489,7 +1487,6 @@ bool Binary::compare(QString sSignature, unsigned int nOffset) return true; } - sSeq=sSignature.section("$",0,0); if(sSeq.contains("#")) diff --git a/elffile.cpp b/elffile.cpp index b2e9fa00ab633..9bf9633d4e63b 100644 --- a/elffile.cpp +++ b/elffile.cpp @@ -47,15 +47,17 @@ bool ELFFile::isValid() bool ELFFile::isELF64() { + bool bResult=false; + if(isValid()) { if(getElfHeader_class()==2) { - return true; + bResult=true; } } - return false; + return bResult; } bool ELFFile::isReverse()