summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas "Pixel" Noble <pixel@nobis-crew.org>2013-05-12 04:00:21 +0200
committerNicolas "Pixel" Noble <pixel@nobis-crew.org>2013-05-12 04:00:21 +0200
commit98afbe47a26a4845d7b82e12131fbf46bec64811 (patch)
tree3743e5fb486007a9930310a903be3119166c52bd
parent6780e6ca4d7121b8390ec57febb9641f1070e1f2 (diff)
Needs a more drastic wai to cross over sector boundaries while iterating over directories.HEADmaster
-rw-r--r--lib/cdutils.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/cdutils.cpp b/lib/cdutils.cpp
index 607d42b..503c537 100644
--- a/lib/cdutils.cpp
+++ b/lib/cdutils.cpp
@@ -562,7 +562,7 @@ struct cdutils::DirEntry cdutils::get_next_dir_entry(struct DirEntry * dir, int
ptr = 0;
if (*cursor < size) {
dir = (struct DirEntry *) &(buffer[*cursor]);
- if (!dir->R) {
+ while (dir && !dir->R) {
(*cursor)++;
if (*cursor < size) {
dir = (struct DirEntry *) &(buffer[*cursor]);