mirror of
https://github.com/reactos/reactos.git
synced 2025-08-02 21:56:06 +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);
|
pWnd = ValidateHwnd(hWnd);
|
||||||
if ( !pWnd ) return FALSE;
|
if ( !pWnd ) return FALSE;
|
||||||
|
|
||||||
if ((nMaxPos - nMinPos) > MAXLONG)
|
if (((LONGLONG)nMaxPos - nMinPos) > MAXLONG)
|
||||||
{
|
{
|
||||||
SetLastError(ERROR_INVALID_SCROLLBAR_RANGE);
|
SetLastError(ERROR_INVALID_SCROLLBAR_RANGE);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue