Carlo Bramini : user32: Remove unused variables in SCROLL_TrackScrollBar.
Module: wine Branch: master Commit: 8d0d1e563ca7697902df9c285ff13ce648697537 URL: http://source.winehq.org/git/wine.git/?a=commit;h=8d0d1e563ca7697902df9c285f... Author: Carlo Bramini <carlo.bramix(a)libero.it> Date: Fri Jan 15 12:20:40 2016 +0300 user32: Remove unused variables in SCROLL_TrackScrollBar. Signed-off-by: Carlo Bramini <carlo.bramix(a)libero.it> Signed-off-by: Nikolay Sivov <nsivov(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/user32/scroll.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/dlls/user32/scroll.c b/dlls/user32/scroll.c index be205ef..b28ee44 100644 --- a/dlls/user32/scroll.c +++ b/dlls/user32/scroll.c @@ -1096,7 +1096,6 @@ static void SCROLL_HandleScrollEvent( HWND hwnd, INT nBar, UINT msg, POINT pt) void SCROLL_TrackScrollBar( HWND hwnd, INT scrollbar, POINT pt ) { MSG msg; - INT xoffset = 0, yoffset = 0; if (scrollbar != SB_CTL) { @@ -1117,8 +1116,8 @@ void SCROLL_TrackScrollBar( HWND hwnd, INT scrollbar, POINT pt ) msg.message == WM_MOUSEMOVE || (msg.message == WM_SYSTIMER && msg.wParam == SCROLL_TIMER)) { - pt.x = (short)LOWORD(msg.lParam) + xoffset; - pt.y = (short)HIWORD(msg.lParam) + yoffset; + pt.x = (short)LOWORD(msg.lParam); + pt.y = (short)HIWORD(msg.lParam); SCROLL_HandleScrollEvent( hwnd, scrollbar, msg.message, pt ); } else
participants (1)
-
Alexandre Julliard