[syslinux] No sub-menus in complex.c32

H. Peter Anvin hpa at zytor.com
Fri Jun 20 14:16:29 PDT 2008


Michael Madore wrote:
> On Fri, Jun 20, 2008 at 3:26 PM, Sebastian Herbszt <herbszt at gmx.de> wrote:
>> From: "Michael Madore" <michael.madore at gmail.com>
>> Sent: Friday, June 20, 2008 5:08 AM
>>> I commented out the call to fix_submenus() in menu/libmenu/menu.c and
>>> now my menu works.  This is with 3.20, so I still have to try with
>>> 3.63.  I haven't looked at fix_submenus() yet to see why it breaks
>>> submenus.
>> I think it breaks because fix_submenus calls find_menu_num which assumes
>> a menu got a name. If add_menu is used name is NULL. It is not NULL if
>> add_named_menu is used. complex.c is the only file using add_menu. All
>> other files (simple.c, test.c and test2.c) are using add_named_menu.
> 
> I converted all occurrences of add_menu to add_named_menu.  The
> sub-menus now work, but radio button options are still broken.
> 

I presume a way to hack around this would be to make add_menu a wrapper 
around add_named_menu assigning it an empty name or something like that?

	-hpa




More information about the Syslinux mailing list