ui/win32/list.c

changeset 1034
330b415910bd
parent 998
55508508ba4d
--- 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;

mercurial