Fix #152, caused by multiple body match

This commit is contained in:
vit9696 2018-11-24 22:48:41 +03:00
parent e1c0b08fc0
commit d9325c22fe

View File

@ -109,6 +109,8 @@ USTATUS FfsDumper::recursiveDump(const UModelIndex & index, const UString & path
fileIndex = index; fileIndex = index;
} }
// We may select parent file during ffs extraction.
if (fileList.count(fileIndex) == 0) {
fileList.insert(fileIndex); fileList.insert(fileIndex);
UString filename; UString filename;
@ -133,6 +135,7 @@ USTATUS FfsDumper::recursiveDump(const UModelIndex & index, const UString & path
dumped = true; dumped = true;
} }
} }
}
// Always dump info unless explicitly prohibited // Always dump info unless explicitly prohibited
if ((dumpMode == DUMP_ALL || dumpMode == DUMP_CURRENT || dumpMode == DUMP_INFO) if ((dumpMode == DUMP_ALL || dumpMode == DUMP_CURRENT || dumpMode == DUMP_INFO)