diff options
Diffstat (limited to 'src/emu/ui/ui.cpp')
-rw-r--r-- | src/emu/ui/ui.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/emu/ui/ui.cpp b/src/emu/ui/ui.cpp index 989905ba550..04fdb7ca436 100644 --- a/src/emu/ui/ui.cpp +++ b/src/emu/ui/ui.cpp @@ -1167,11 +1167,11 @@ std::string &ui_manager::game_info_astring(std::string &str) // count how many identical CPUs we have int count = 1; - const char *name = exec->device().name(); + std::string name = exec->device().name(); execute_interface_iterator execinneriter(machine().root_device()); for (device_execute_interface *scan = execinneriter.first(); scan != nullptr; scan = execinneriter.next()) { - if (exec->device().type() == scan->device().type() && strcmp(name, scan->device().name()) == 0 && exec->device().clock() == scan->device().clock()) + if (exec->device().type() == scan->device().type() && name==scan->device().name() && exec->device().clock() == scan->device().clock()) if (exectags.insert(scan->device().tag()).second) count++; } @@ -1179,7 +1179,7 @@ std::string &ui_manager::game_info_astring(std::string &str) // if more than one, prepend a #x in front of the CPU name if (count > 1) strcatprintf(str, "%d" UTF8_MULTIPLY, count); - str.append(name); + str += name; // display clock in kHz or MHz if (clock >= 1000000) |