diff options
author | Michiel Van Der Kolk <not.valid@email.address> | 2005-04-25 22:36:23 +0000 |
---|---|---|
committer | Michiel Van Der Kolk <not.valid@email.address> | 2005-04-25 22:36:23 +0000 |
commit | b015d642b5572001bd45ec79048f997d7daae017 (patch) | |
tree | 90eb5b89cb19e3c97c33226054f06b8146e7d895 /apps/dbtree.c | |
parent | 9213fb241b90f35e5af317c4c01b6e38d2308bac (diff) |
Fixed bad directory length when browsing "all files" for an artist, with not enough files to fill a screen.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6354 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/dbtree.c')
-rw-r--r-- | apps/dbtree.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/dbtree.c b/apps/dbtree.c index 359419cbd6..480564d39f 100644 --- a/apps/dbtree.c +++ b/apps/dbtree.c @@ -372,6 +372,9 @@ int db_load(struct tree_context* c) lseek(fd, skip, SEEK_CUR); hits++; + + if(table==songs4artist) + c->dirlength=hits; /* next name is stored immediately after this */ nptr = (void*)nptr + strlen((char*)nptr) + 1; |