overrun of static array

Fix for Coverity error CID: 548.

svn path=/trunk/; revision=36412
This commit is contained in:
Christoph von Wittich 2008-09-23 07:33:44 +00:00
parent cb7fa454fa
commit eb68ba4328

View file

@ -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];
}