mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 04:13:34 +00:00
[USER32]
- Fix overflow check in SetScrollRange. CID 731535 CORE-12763 #resolve svn path=/trunk/; revision=74059
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user