[PATCH 2/2] comctl32: Fix 'SB_VERT' copypasta in LISTBOX_HandleHScroll().

Serge Gautherie winehq-git_serge_180711 at gautherie.fr
Wed May 20 14:14:55 CDT 2020


Signed-off-by: Serge Gautherie <winehq-git_serge_180711 at gautherie.fr>
---
Assuming identical code needs identical fix...
Please, double-check that this is correct.
---
 dlls/comctl32/listbox.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/comctl32/listbox.c b/dlls/comctl32/listbox.c
index f9b4e0a..089bd6e 100644
--- a/dlls/comctl32/listbox.c
+++ b/dlls/comctl32/listbox.c
@@ -2019,7 +2019,7 @@ static LRESULT LISTBOX_HandleHScroll( LB_DESCR *descr, WORD scrollReq, WORD pos
         case SB_THUMBTRACK:
             info.cbSize = sizeof(info);
             info.fMask  = SIF_TRACKPOS;
-            GetScrollInfo( descr->self, SB_VERT, &info );
+            GetScrollInfo( descr->self, SB_HORZ, &info );
             LISTBOX_SetTopItem( descr, info.nTrackPos*descr->page_size,
                                 TRUE );
             break;
-- 
2.10.0.windows.1




More information about the wine-devel mailing list