Author: tfaber
Date: Sat Mar 4 19:02:30 2017
New Revision: 74059
URL:
http://svn.reactos.org/svn/reactos?rev=74059&view=rev
Log:
[USER32]
- Fix overflow check in SetScrollRange. CID 731535
CORE-12763 #resolve
Modified:
trunk/reactos/win32ss/user/user32/controls/scrollbar.c
Modified: trunk/reactos/win32ss/user/user32/controls/scrollbar.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/user/user32/contro…
==============================================================================
--- trunk/reactos/win32ss/user/user32/controls/scrollbar.c [iso-8859-1] (original)
+++ trunk/reactos/win32ss/user/user32/controls/scrollbar.c [iso-8859-1] Sat Mar 4
19:02:30 2017
@@ -1701,7 +1701,7 @@
pWnd = ValidateHwnd(hWnd);
if ( !pWnd ) return FALSE;
- if ((nMaxPos - nMinPos) > MAXLONG)
+ if (((LONGLONG)nMaxPos - nMinPos) > MAXLONG)
{
SetLastError(ERROR_INVALID_SCROLLBAR_RANGE);
return FALSE;