diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/cdutils.cpp | 2 |
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]); |