summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2012-04-21 16:07:01 +0000
committer Miodrag Milanovic <mmicko@gmail.com>2012-04-21 16:07:01 +0000
commitfa0beabf41e598f478956ebeee19648496c9f709 (patch)
tree1ccc351079ccc080c6c6cbfa0fc232fabfe27984
parent48977468663e7c8feb016556336f1489a4c94de0 (diff)
fix for default attribute in slotoption of xml output (no whatsnew)
-rw-r--r--src/emu/info.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/emu/info.c b/src/emu/info.c
index cc39d76f85d..e29fb7108d4 100644
--- a/src/emu/info.c
+++ b/src/emu/info.c
@@ -1279,7 +1279,7 @@ void info_xml_creator::output_slots(device_t &device, const char *root_tag)
fprintf(m_output, " devname=\"%s\"", xml_normalize_string(dev->shortname()));
if (slot->get_default_card(m_drivlist.config(), m_drivlist.options()))
{
- if (slot->get_default_card(m_drivlist.config(), m_drivlist.options()) == intf[i].name)
+ if (strcmp(slot->get_default_card(m_drivlist.config(), m_drivlist.options()),intf[i].name)==0)
fprintf(m_output, " default=\"yes\"");
}
fprintf(m_output, "/>\n");