15 Jul
2023
15 Jul
'23
7:08 p.m.
Esme Povirk (@madewokherd) commented about dlls/uiautomationcore/uia_com_client.c:
EnterCriticalSection(&com_event_handlers_cs);
if (!com_event_handlers.handler_count) + { list_init(&com_event_handlers.handler_list); + rb_init(&com_event_handlers.handler_map, uia_com_event_handler_id_compare); + }
I think this would be simpler with just the rbtree, so we don't have 2 different data structures that need to be kept consistent. Unless the order matters for some reason, the rbtree should be able to hold all the information. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/3297#note_39082