https://bugs.winehq.org/show_bug.cgi?id=44845
--- Comment #12 from Alex Henrie alexhenrie24@gmail.com --- Created attachment 60958 --> https://bugs.winehq.org/attachment.cgi?id=60958 [PATCH] comctl32: Ensure that nPage <= nMax when calling SetScrollInfo
This is the best explanation I've come up with for this bug:
1. The installer patches SetScrollbarInfo. 2. LISTVIEW_UpdateHScroll calls SetScrollbarInfo with a page number greater than the maximum. 3. The custom SetScrollbarInfo tries to correct the page number by doing something that ultimately results in LISTVIEW_UpdateHScroll being called again.
The solution might be to make sure that the page number is less than or equal to the maximum before calling SetScrollbarInfo (patch attached). The bug disappears if you do that. Nikolay, what do you think?