Tomasz Jezierski - Tefnet : comctl32/tests: Fix for setting wrong initial position in listbox.
Module: wine Branch: master Commit: 4e224e73c47b66056b28fddb1c15b3715818bf92 URL: http://source.winehq.org/git/wine.git/?a=commit;h=4e224e73c47b66056b28fddb1c... Author: Tomasz Jezierski - Tefnet <developers(a)tefnet.pl> Date: Fri May 23 19:17:42 2008 +0200 comctl32/tests: Fix for setting wrong initial position in listbox. --- dlls/comctl32/tests/listview.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/comctl32/tests/listview.c b/dlls/comctl32/tests/listview.c index 790d8b6..b4cad0c 100644 --- a/dlls/comctl32/tests/listview.c +++ b/dlls/comctl32/tests/listview.c @@ -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);
participants (1)
-
Alexandre Julliard