forked from len0rd/rockbox
Fix error handling in dircache generation.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24730 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
020322665b
commit
eb54ede182
1 changed files with 2 additions and 2 deletions
|
|
@ -259,10 +259,10 @@ static int sab_process_dir(unsigned long startcluster, struct dircache_entry *ce
|
|||
/* second pass: recurse ! */
|
||||
ce = first_ce;
|
||||
|
||||
while(ce)
|
||||
while(rc >= 0 && ce)
|
||||
{
|
||||
if(ce->name_len != 0 && ce->down != NULL && strcmp(ce->d_name, ".") && strcmp(ce->d_name, ".."))
|
||||
sab_process_dir(ce->startcluster, ce->down);
|
||||
rc = sab_process_dir(ce->startcluster, ce->down);
|
||||
|
||||
ce = ce->next;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue