forked from len0rd/rockbox
Fixed bug where exiting textviewer after using up all the bookmarks caused that file unable to be read the next time.
Change-Id: I1924fe68c8528c03c4197f74a4f014edb0ac9f2a
This commit is contained in:
parent
457bdfb6fc
commit
f723ca5805
1 changed files with 3 additions and 0 deletions
|
|
@ -159,6 +159,9 @@ void tv_create_system_bookmark(void)
|
|||
bookmarks[idx].flag |= TV_BOOKMARK_SYSTEM;
|
||||
else
|
||||
{
|
||||
/* we can't add a bookmark if there is no room left! */
|
||||
if (bookmark_count == TV_MAX_BOOKMARKS)
|
||||
return;
|
||||
bookmarks[bookmark_count].pos = *pos;
|
||||
bookmarks[bookmark_count].flag = TV_BOOKMARK_SYSTEM;
|
||||
bookmark_count++;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue