1
0
Fork 0
forked from len0rd/rockbox

Hopefully fix crashes if the start screen is set to previous and nvram.bin becomes invalid

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18686 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jonathan Gordon 2008-10-03 00:43:09 +00:00
parent fcdffd68af
commit 28f1f50ab7

View file

@ -500,6 +500,9 @@ void root_menu(void)
int next_screen = GO_TO_ROOT;
int selected = 0;
if ((global_status.last_screen&0xff) == -1)
global_status.last_screen = GO_TO_ROOT;
if (global_settings.start_in_screen == 0)
next_screen = (int)global_status.last_screen;
else next_screen = global_settings.start_in_screen - 2;