mirror of
https://github.com/holub/mame
synced 2025-04-24 01:11:11 +03:00
Fix assert on opening empty watchpoints/breakpoints windows
This commit is contained in:
parent
a406fe29e2
commit
0853e5f3b6
@ -213,7 +213,8 @@ void debug_view_breakpoints::gather_breakpoints()
|
||||
}
|
||||
|
||||
// And now for the sort
|
||||
qsort(&m_buffer[0], m_buffer.count(), sizeof(device_debug::breakpoint *), m_sortType);
|
||||
if (m_buffer.count() > 0)
|
||||
qsort(&m_buffer[0], m_buffer.count(), sizeof(device_debug::breakpoint *), m_sortType);
|
||||
}
|
||||
|
||||
|
||||
|
@ -240,7 +240,8 @@ void debug_view_watchpoints::gather_watchpoints()
|
||||
}
|
||||
|
||||
// And now for the sort
|
||||
qsort(&m_buffer[0], m_buffer.count(), sizeof(device_debug::watchpoint *), m_sortType);
|
||||
if (m_buffer.count() > 0)
|
||||
qsort(&m_buffer[0], m_buffer.count(), sizeof(device_debug::watchpoint *), m_sortType);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user