From e22af462377268bcb954c7db0fed3f4d788bb67d Mon Sep 17 00:00:00 2001 From: Olivier Galibert Date: Thu, 9 Feb 2012 20:11:54 +0000 Subject: [PATCH] listxml fix (nw) --- src/emu/info.c | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/src/emu/info.c b/src/emu/info.c index 17ceed52d82..8ef8c3c7f33 100644 --- a/src/emu/info.c +++ b/src/emu/info.c @@ -1210,17 +1210,18 @@ void info_xml_creator::output_slots() */ const slot_interface* intf = slot->get_slot_interfaces(); - for (int i = 0; intf[i].name != NULL; i++) - { - fprintf(m_output, "\t\t\tget_default_card(m_drivlist.config(), m_drivlist.options())) + if (intf) + for (int i = 0; intf[i].name != NULL; i++) { - if (slot->get_default_card(m_drivlist.config(), m_drivlist.options()) == intf[i].name) - fprintf(m_output, " default=\"yes\""); + fprintf(m_output, "\t\t\tget_default_card(m_drivlist.config(), m_drivlist.options())) + { + if (slot->get_default_card(m_drivlist.config(), m_drivlist.options()) == intf[i].name) + fprintf(m_output, " default=\"yes\""); + } + fprintf(m_output, "/>\n"); } - fprintf(m_output, "/>\n"); - } fprintf(m_output, "\t\t\n"); }