summaryrefslogtreecommitdiffstats
path: root/src/emu/debug/dvbpoints.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/emu/debug/dvbpoints.cpp')
-rw-r--r--src/emu/debug/dvbpoints.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/emu/debug/dvbpoints.cpp b/src/emu/debug/dvbpoints.cpp
index b72c0081cf2..efb604e385d 100644
--- a/src/emu/debug/dvbpoints.cpp
+++ b/src/emu/debug/dvbpoints.cpp
@@ -43,7 +43,7 @@ static int cCpuAscending(const void* a, const void* b)
{
const device_debug::breakpoint* left = *(device_debug::breakpoint**)a;
const device_debug::breakpoint* right = *(device_debug::breakpoint**)b;
- return left->debugInterface()->device().tag() != right->debugInterface()->device().tag();
+ return strcmp(left->debugInterface()->device().tag(), right->debugInterface()->device().tag());
}
static int cCpuDescending(const void* a, const void* b)
@@ -134,7 +134,7 @@ void debug_view_breakpoints::enumerate_sources()
for (device_disasm_interface *dasm = iter.first(); dasm != nullptr; dasm = iter.next())
{
std::string name;
- strprintf(name, "%s '%s'", dasm->device().name(), dasm->device().tag().c_str());
+ strprintf(name, "%s '%s'", dasm->device().name(), dasm->device().tag());
m_source_list.append(*global_alloc(debug_view_source(name.c_str(), &dasm->device())));
}