Avoid a crash when path is empty.

Happened for me few times, but reason unknown.
This commit is contained in:
Deve 2018-09-23 22:52:40 +02:00
parent 36d1376567
commit 2ac0e5fd07

View File

@ -121,6 +121,9 @@ void CMountPointReader::buildDirectory()
io::path full = list->getFullFileName(i);
full = full.subString(Path.size(), full.size() - Path.size());
if (full == "")
continue;
if (!list->isDirectory(i))
{
addItem(full, list->getFileOffset(i), list->getFileSize(i), false, RealFileNames.size());