Gerald Pfeifer : user32: Fix variable type in SCROLL_HandleScrollEvent(). Remove useless check in SCROLL_SetScrollInfo().
Alexandre Julliard
julliard at winehq.org
Mon Nov 26 08:16:23 CST 2007
Module: wine
Branch: master
Commit: 56af18f2230c66186648ebcc6058863c4c00544d
URL: http://source.winehq.org/git/wine.git/?a=commit;h=56af18f2230c66186648ebcc6058863c4c00544d
Author: Gerald Pfeifer <gerald at pfeifer.com>
Date: Wed Nov 21 11:25:09 2007 +0100
user32: Fix variable type in SCROLL_HandleScrollEvent(). Remove useless check in SCROLL_SetScrollInfo().
---
dlls/user32/scroll.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/user32/scroll.c b/dlls/user32/scroll.c
index f07bf75..78564b0 100644
--- a/dlls/user32/scroll.c
+++ b/dlls/user32/scroll.c
@@ -961,7 +961,7 @@ static void SCROLL_HandleScrollEvent( HWND hwnd, INT nBar, UINT msg, POINT pt)
}
else /* WM_MOUSEMOVE */
{
- UINT pos;
+ INT pos;
if (!SCROLL_PtInRectEx( &rect, pt, vertical )) pos = lastClickPos;
else
@@ -1621,7 +1621,7 @@ static INT SCROLL_SetScrollInfo( HWND hwnd, INT nBar, LPCSCROLLINFO info, BOOL b
if (info->fMask & SIF_PAGE)
{
- if( infoPtr->page != info->nPage && info->nPage >= 0)
+ if( infoPtr->page != info->nPage )
{
infoPtr->page = info->nPage;
action |= SA_SSI_REFRESH;
More information about the wine-cvs
mailing list