[syslinux] No sub-menus in complex.c32
Michael Madore
michael.madore at gmail.com
Sat Jun 21 07:06:48 PDT 2008
Hi Murali,
> I think I have got the fix.
>
> Michael, Andrew, could you apply the following patch to
> menu/libmenu/menu.c and see if it works for you. With the change I
> have got complex.c to work.
...
> Sorry for any troubles caused.
With that patch, my menu now works correctly. I had to apply it by
hand to 3.63 however. Here is a patch that applies cleanly to 3.63.
Thanks!
Mike
--- syslinux-3.63/menu/libmenu/menu.c 2008-04-10 13:30:35.000000000 -0400
+++ syslinux-3.63-asl/menu/libmenu/menu.c 2008-06-21
05:17:08.000000000 -0400
@@ -695,10 +695,9 @@
for (j=0; j < m->numitems; j++)
{
mi = m->items[j];
- // if submenu with non-trivial data string
- // again using hack that itemdata is a union data type
- if ( mi->data && ((mi->action == OPT_SUBMENU) || (mi->action
== OPT_RADIOMENU)) )
- mi->itemdata.submenunum = find_menu_num (mi->data);
+ // if item is a submenu and has non-empty non-trivial data string
+ if ( mi->data && strlen(mi->data) > 0 &&
+ ((mi->action == OPT_SUBMENU) || (mi->action == OPT_RADIOMENU)) );
}
}
}
More information about the Syslinux
mailing list