[libromdata] IsoPartition::readdir(): If there's no more non-zero bytes, return nullptr.

Otherwise, an empty IFst::DirEnt is returned.
This commit is contained in:
David Korth 2025-06-08 14:44:49 -04:00
parent 618c7c6a8d
commit a5d22511e0

View File

@ -789,7 +789,7 @@ const IFst::DirEnt *IsoPartition::readdir(IFst::Dir *dirp)
if (p >= p_end) {
// No more non-zero bytes.
dirp->entry.idx = static_cast<int>(pDir->size());
break;
return nullptr;
}
continue;
} else if (dirEntry->entry_length < sizeof(*dirEntry)) {