mirror of
https://github.com/reactos/reactos.git
synced 2024-08-03 18:10:54 +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
|
HPEN STDCALL
|
||||||
GetSysColorPen(int nIndex)
|
GetSysColorPen(int nIndex)
|
||||||
{
|
{
|
||||||
if(nIndex >= 0 && nIndex <= NUM_SYSCOLORS)
|
if(nIndex >= 0 && nIndex < NUM_SYSCOLORS)
|
||||||
{
|
{
|
||||||
return g_psi->SysColorPens[nIndex];
|
return g_psi->SysColorPens[nIndex];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue