diff -r eda1ff20cb27 -r 330b415910bd ui/win32/list.c --- a/ui/win32/list.c Mon Dec 29 17:46:10 2025 +0100 +++ b/ui/win32/list.c Wed Dec 31 09:16:02 2025 +0100 @@ -191,17 +191,17 @@ static UiListSelection listview_get_selection2(HWND hwnd) { UiListSelection sel = { 0, NULL }; - CX_ARRAY_DECLARE(int, indices); - cx_array_initialize(indices, 8); + CX_ARRAY(int, indices); + cx_array_init(indices, 8); int index = -1; while ((index = ListView_GetNextItem(hwnd, index, LVNI_SELECTED)) != -1) { - cx_array_simple_add(indices, index); + cx_array_add(indices, index); } - if (indices_size > 0) { - sel.rows = indices; - sel.count = indices_size; + if (indices.size > 0) { + sel.rows = indices.data; + sel.count = indices.size; } return sel;