Fix some int/ptr comparisons.

This commit is contained in:
Unknown W. Brackets 2014-04-27 20:34:33 -07:00
parent b550ccfc73
commit 2fdefc4fb5
8 changed files with 18 additions and 18 deletions

View file

@ -421,7 +421,7 @@ bool SELFDecrypter::MakeElf(const std::string& elf, bool isElf32)
}
// Write section headers.
if(self_hdr.se_shdroff != NULL)
if(self_hdr.se_shdroff != 0)
{
e.Seek(elf32_hdr.e_shoff);
@ -482,7 +482,7 @@ bool SELFDecrypter::MakeElf(const std::string& elf, bool isElf32)
}
// Write section headers.
if(self_hdr.se_shdroff != NULL)
if(self_hdr.se_shdroff != 0)
{
e.Seek(elf64_hdr.e_shoff);