forked from len0rd/rockbox
'Move to Next Folder' didn't work if it involved going up to the root of the drive.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7265 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
7e58bd7cb8
commit
97c6fd0892
1 changed files with 8 additions and 1 deletions
|
@ -1169,7 +1169,14 @@ static int check_subdir_for_music(char *dir, char *subdir)
|
|||
|
||||
if (result < 0)
|
||||
{
|
||||
dir[dirlen] = '\0';
|
||||
if (dirlen)
|
||||
{
|
||||
dir[dirlen] = '\0';
|
||||
}
|
||||
else
|
||||
{
|
||||
strcpy(dir, "/");
|
||||
}
|
||||
|
||||
/* we now need to reload our current directory */
|
||||
if(ft_load(tc, dir) < 0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue