aboutsummaryrefslogtreecommitdiffstats
path: root/com32
diff options
context:
space:
mode:
authorPierre-Alexandre Meyer <pierre@mouraf.org>2009-09-07 15:17:22 -0700
committerPierre-Alexandre Meyer <pierre@mouraf.org>2009-09-07 15:17:22 -0700
commit3e8d9f7d228c21be97f0d948546b07e5aa959313 (patch)
tree6108cd547a03e63bf3d3e50b6a673f7abf042370 /com32
parentbb0a9e19885372d2fa50fe6d5514f3dd934b18a0 (diff)
downloadsyslinux-3e8d9f7d228c21be97f0d948546b07e5aa959313.tar.gz
syslinux-3e8d9f7d228c21be97f0d948546b07e5aa959313.tar.xz
syslinux-3e8d9f7d228c21be97f0d948546b07e5aa959313.zip
cmenu: do not invoke help if helpid is 0xFFFF (complex.c)
0xFFFF is invalid (no help) Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
Diffstat (limited to 'com32')
-rw-r--r--com32/cmenu/complex.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/com32/cmenu/complex.c b/com32/cmenu/complex.c
index 7f8beeb8..1ac51997 100644
--- a/com32/cmenu/complex.c
+++ b/com32/cmenu/complex.c
@@ -71,7 +71,7 @@ void keys_handler(t_menusystem * ms __attribute__ (( unused )), t_menuitem * mi,
{
int nc, nr;
- if ((scancode) == KEY_F1) { // If scancode of F1
+ if ((scancode) == KEY_F1 && mi->helpid != 0xFFFF) { // If scancode of F1
runhelpsystem(mi->helpid);
}
// If user hit TAB, and item is an "executable" item