Zhiyi Zhang : comctl32/theme_scrollbar: Remove an unused variable.

Alexandre Julliard julliard at winehq.org
Mon Feb 22 15:43:22 CST 2021


Module: wine
Branch: master
Commit: d9b47aa303705c61c0b469363c5dfd05d2e34b11
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=d9b47aa303705c61c0b469363c5dfd05d2e34b11

Author: Zhiyi Zhang <zzhang at codeweavers.com>
Date:   Mon Feb 22 22:32:21 2021 +0800

comctl32/theme_scrollbar: Remove an unused variable.

Signed-off-by: Zhiyi Zhang <zzhang at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/comctl32/theme_scrollbar.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/dlls/comctl32/theme_scrollbar.c b/dlls/comctl32/theme_scrollbar.c
index bb42267bf21..27d31bd4ac5 100644
--- a/dlls/comctl32/theme_scrollbar.c
+++ b/dlls/comctl32/theme_scrollbar.c
@@ -334,16 +334,12 @@ static void paint_scrollbar(HWND hwnd, HTHEME theme)
 
         DrawThemeBackground(theme, dc, SBP_SIZEBOX, state, &r, NULL);
     } else {
-        SCROLLBARINFO sbi;
         SCROLLINFO si;
         unsigned int thumbpos, thumbsize;
         int uppertrackstate, lowertrackstate, thumbstate;
         RECT partrect, trackrect;
         SIZE grippersize;
 
-        sbi.cbSize = sizeof(sbi);
-        GetScrollBarInfo(hwnd, OBJID_CLIENT, &sbi);
-
         si.cbSize = sizeof(si);
         si.fMask = SIF_ALL;
         GetScrollInfo(hwnd, SB_CTL, &si);




More information about the wine-cvs mailing list