mirror of
https://github.com/reactos/reactos.git
synced 2025-02-23 08:55:19 +00:00
[USER32]
- Fix overflow check in SetScrollRange. CID 731535 CORE-12763 #resolve svn path=/trunk/; revision=74059
This commit is contained in:
parent
3df8b3ccc8
commit
fd343d21dd
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue