[PATCH 1/6] comctl32/theme_scrollbar: Remove an unused variable.

Zhiyi Zhang zzhang at codeweavers.com
Mon Feb 22 08:32:21 CST 2021


Signed-off-by: Zhiyi Zhang <zzhang at codeweavers.com>
---
 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);
-- 
2.27.0




More information about the wine-devel mailing list