aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2008-02-19 18:13:47 -0800
committerH. Peter Anvin <hpa@zytor.com>2008-02-19 18:13:47 -0800
commit1412c296964937976327e87d88fc46f9786903ed (patch)
treef3a5a47e86f017fa31b3d47c7655fa8320b4a8eb
parent1a306d92054c6feef185bb9cbc90e6efa9f758a6 (diff)
downloadsyslinux-1412c296964937976327e87d88fc46f9786903ed.tar.gz
syslinux-1412c296964937976327e87d88fc46f9786903ed.tar.xz
syslinux-1412c296964937976327e87d88fc46f9786903ed.zip
When entering a new menu, go to the default entry for that menu.
-rw-r--r--com32/menu/menumain.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/com32/menu/menumain.c b/com32/menu/menumain.c
index 9058efb1..8c1dabf9 100644
--- a/com32/menu/menumain.c
+++ b/com32/menu/menumain.c
@@ -835,7 +835,8 @@ run_menu(void)
done = 0;
clear = 2;
cm = me->submenu;
- entry = top = 0;
+ entry = cm->defentry;
+ top = 0;
break;
case MA_QUIT:
/* Quit menu system */