mirror of
https://github.com/reactos/reactos.git
synced 2024-07-12 07:35:10 +00:00
overrun of static array
Fix for Coverity error CID: 548. svn path=/trunk/; revision=36412
This commit is contained in:
parent
cb7fa454fa
commit
eb68ba4328
|
@ -76,7 +76,7 @@ GetSysColor(int nIndex)
|
|||
HPEN STDCALL
|
||||
GetSysColorPen(int nIndex)
|
||||
{
|
||||
if(nIndex >= 0 && nIndex <= NUM_SYSCOLORS)
|
||||
if(nIndex >= 0 && nIndex < NUM_SYSCOLORS)
|
||||
{
|
||||
return g_psi->SysColorPens[nIndex];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue