mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-06-15 08:32:22 -07:00
flip priority of (handle, id) thread name events; prefer id if it is there, to correctly work with the set-suspended-thread-name-by-ID case
This commit is contained in:
@@ -1251,15 +1251,15 @@ ctrl_entity_store_apply_events(CTRL_EntityStore *store, CTRL_EventList *list)
|
||||
{
|
||||
CTRL_Entity *process = ctrl_entity_from_handle(store, event->parent);
|
||||
CTRL_Entity *thread = ctrl_entity_from_handle(store, event->entity);
|
||||
if(thread != &ctrl_entity_nil)
|
||||
{
|
||||
ctrl_entity_equip_string(store, thread, event->string);
|
||||
}
|
||||
else
|
||||
if(event->entity_id != 0)
|
||||
{
|
||||
CTRL_Entity *pending_name = ctrl_entity_alloc(store, process, CTRL_EntityKind_PendingThreadName, Arch_Null, ctrl_handle_zero(), event->entity_id);
|
||||
ctrl_entity_equip_string(store, pending_name, event->string);
|
||||
}
|
||||
else if(thread != &ctrl_entity_nil)
|
||||
{
|
||||
ctrl_entity_equip_string(store, thread, event->string);
|
||||
}
|
||||
}break;
|
||||
case CTRL_EventKind_ThreadColor:
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user