July 31, 2026
11:04 a.m.
If the index is negative or greater than or equal the number of items, we should return LB_ERR to match windows. If it is greater than the top index but less than the number of items, it still gets clamped. Discovered when investigating inconsistencies in test results between Windows and WINE in !11491. -- v3: user32/listbox: Handle out-of-bounds SETTOPINDEX comctl32/listbox: Handle out-of-bounds SETTOPINDEX user32/tests: Check listbox SETTOPINDEX errors comctl32/tests: Check listbox SETTOPINDEX errors https://gitlab.winehq.org/wine/wine/-/merge_requests/11507