Fix problem with loading bookmarks from the root folder (causing the simulator to crash).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9836 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
b236dc63ff
commit
3bd4b0be39
1 changed files with 2 additions and 2 deletions
|
@ -1233,12 +1233,12 @@ void bookmark_play(char *resume_file, int index, int offset, int seed,
|
|||
|
||||
/* Check if the file is at the same spot in the directory,
|
||||
else search for it */
|
||||
if ((strcmp(strrchr(playlist_peek(index) + 1,'/') + 1,
|
||||
if ((strcmp(strrchr(playlist_peek(index),'/') + 1,
|
||||
filename)))
|
||||
{
|
||||
for ( i=0; i < playlist_amount(); i++ )
|
||||
{
|
||||
if ((strcmp(strrchr(playlist_peek(i) + 1,'/') + 1,
|
||||
if ((strcmp(strrchr(playlist_peek(i),'/') + 1,
|
||||
filename)) == 0)
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue