From 98afbe47a26a4845d7b82e12131fbf46bec64811 Mon Sep 17 00:00:00 2001 From: "Nicolas \"Pixel\" Noble" Date: Sun, 12 May 2013 04:00:21 +0200 Subject: Needs a more drastic wai to cross over sector boundaries while iterating over directories. --- lib/cdutils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]); -- cgit v1.2.3