[PATCH v2] user32: Remove unused variables in SCROLL_TrackScrollBar
Nikolay Sivov
nsivov at codeweavers.com
Fri Jan 15 03:20:40 CST 2016
From: Carlo Bramini <carlo.bramix at libero.it>
Signed-off-by: Carlo Bramini <carlo.bramix at libero.it>
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
---
v2: removed mode change from a diff; shorter subject line, missed signed-off by
author
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 e844122..a210962 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
--
2.7.0.rc3
More information about the wine-patches
mailing list