Avoid a crash when path is empty.
Happened for me few times, but reason unknown.
This commit is contained in:
parent
36d1376567
commit
2ac0e5fd07
@ -121,6 +121,9 @@ void CMountPointReader::buildDirectory()
|
|||||||
io::path full = list->getFullFileName(i);
|
io::path full = list->getFullFileName(i);
|
||||||
full = full.subString(Path.size(), full.size() - Path.size());
|
full = full.subString(Path.size(), full.size() - Path.size());
|
||||||
|
|
||||||
|
if (full == "")
|
||||||
|
continue;
|
||||||
|
|
||||||
if (!list->isDirectory(i))
|
if (!list->isDirectory(i))
|
||||||
{
|
{
|
||||||
addItem(full, list->getFileOffset(i), list->getFileSize(i), false, RealFileNames.size());
|
addItem(full, list->getFileOffset(i), list->getFileSize(i), false, RealFileNames.size());
|
||||||
|
Loading…
Reference in New Issue
Block a user