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.