Fix handling of shared features in softlists (no whatsnew)

This commit is contained in:
Miodrag Milanovic 2011-12-02 08:18:42 +00:00
parent 332613a611
commit 80acaef257

View File

@ -893,14 +893,6 @@ static void end_handler(void *data, const char *name)
case POS_ROOT:
break;
case POS_SOFT:
if ( ! strcmp( name, "part" ) && swlist->softinfo )
{
/* ROM_END */
add_rom_entry( swlist, NULL, NULL, 0, 0, ROMENTRYTYPE_END );
}
break;
case POS_MAIN:
if ( swlist->softinfo )
{
@ -908,7 +900,11 @@ static void end_handler(void *data, const char *name)
}
break;
case POS_PART:
case POS_SOFT:
if ( ! strcmp( name, "part" ) && swlist->softinfo )
{
/* ROM_END */
add_rom_entry( swlist, NULL, NULL, 0, 0, ROMENTRYTYPE_END );
/* Add shared_info inherited from the software_info level, if any */
if ( swlist->softinfo && swlist->softinfo->shared_info )
{
@ -920,8 +916,11 @@ static void end_handler(void *data, const char *name)
list = list->next;
}
}
}
break;
case POS_PART:
break;
case POS_DATA:
break;
}