- Fix overflow check in SetScrollRange. CID 731535
CORE-12763 #resolve

svn path=/trunk/; revision=74059
This commit is contained in:
Thomas Faber 2017-03-04 19:02:30 +00:00
parent 3df8b3ccc8
commit fd343d21dd

View file

@ -1701,7 +1701,7 @@ SetScrollRange(HWND hWnd, INT nBar, INT nMinPos, INT nMaxPos, BOOL bRedraw)
pWnd = ValidateHwnd(hWnd);
if ( !pWnd ) return FALSE;
if ((nMaxPos - nMinPos) > MAXLONG)
if (((LONGLONG)nMaxPos - nMinPos) > MAXLONG)
{
SetLastError(ERROR_INVALID_SCROLLBAR_RANGE);
return FALSE;