mirror of
https://github.com/GerbilSoft/rom-properties.git
synced 2025-06-18 19:45:41 -04:00
[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:
parent
618c7c6a8d
commit
a5d22511e0
@ -789,7 +789,7 @@ const IFst::DirEnt *IsoPartition::readdir(IFst::Dir *dirp)
|
|||||||
if (p >= p_end) {
|
if (p >= p_end) {
|
||||||
// No more non-zero bytes.
|
// No more non-zero bytes.
|
||||||
dirp->entry.idx = static_cast<int>(pDir->size());
|
dirp->entry.idx = static_cast<int>(pDir->size());
|
||||||
break;
|
return nullptr;
|
||||||
}
|
}
|
||||||
continue;
|
continue;
|
||||||
} else if (dirEntry->entry_length < sizeof(*dirEntry)) {
|
} else if (dirEntry->entry_length < sizeof(*dirEntry)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user