Skip to content
Snippets Groups Projects
Commit 4e224e73 authored by Tomasz Jezierski's avatar Tomasz Jezierski Committed by Alexandre Julliard
Browse files

comctl32/tests: Fix for setting wrong initial position in listbox.

parent 914cb228
No related branches found
Tags wine-0.7
No related merge requests found
......@@ -1171,7 +1171,7 @@ static void test_multiselect(void)
SendMessage(hwnd, LVM_SETSELECTIONMARK, 0, -1);
/* set initial position */
SendMessage(hwnd, LVM_SETSELECTIONMARK, 0, (task.initPos == -1 ? item_count : task.initPos));
SendMessage(hwnd, LVM_SETSELECTIONMARK, 0, (task.initPos == -1 ? item_count -1 : task.initPos));
ListView_SetItemState(hwnd,(task.initPos == -1 ? item_count -1 : task.initPos),LVIS_SELECTED ,LVIS_SELECTED);
selected_count = (int)SendMessage(hwnd, LVM_GETSELECTEDCOUNT, 0, 0);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment