Bug 940250 - Fix elfhack -r after bug 822584. r=nfroyd

This commit is contained in:
Mike Hommey 2013-11-21 17:27:30 +09:00
parent 176f4b5200
commit ad69254db1

View File

@ -768,7 +768,7 @@ void undo_file(const char *name, bool backup = false)
ElfSegment *second = elf.getSegmentByType(PT_LOAD, first);
ElfSegment *filler = nullptr;
// If the second PT_LOAD is a filler from elfhack --fill, check the third.
if (!second->isElfHackFillerSegment()) {
if (second->isElfHackFillerSegment()) {
filler = second;
second = elf.getSegmentByType(PT_LOAD, filler);
}