From: Pierre-Alexandre Meyer Date: Mon, 7 Sep 2009 22:10:20 +0000 (-0700) Subject: hdt: do not invoke help if helpid is 0xFFFF X-Git-Tag: syslinux-3.84-pre1~37^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bb0a9e19885372d2fa50fe6d5514f3dd934b18a0;p=profile%2Fivi%2Fsyslinux.git hdt: do not invoke help if helpid is 0xFFFF 0xFFFF is invalid (no help). Signed-off-by: Pierre-Alexandre Meyer --- diff --git a/com32/hdt/hdt-menu.c b/com32/hdt/hdt-menu.c index 894a7d1..2297952 100644 --- a/com32/hdt/hdt-menu.c +++ b/com32/hdt/hdt-menu.c @@ -89,9 +89,11 @@ void keys_handler(t_menusystem * ms __attribute__ (( unused )), t_menuitem * mi, { int nr, nc; - if (scancode == KEY_F1) { // If scancode of F1 + /* 0xFFFF is an invalid helpid */ + if (scancode == KEY_F1 && mi->helpid != 0xFFFF) { runhelpsystem(mi->helpid); } + /* * If user hit TAB, and item is an "executable" item * and user has privileges to edit it, edit it in place.