Author: cwittich
Date: Tue Sep 23 02:33:44 2008
New Revision: 36412
URL:
http://svn.reactos.org/svn/reactos?rev=36412&view=rev
Log:
overrun of static array
Fix for Coverity error CID: 548.
Modified:
trunk/reactos/dll/win32/user32/windows/defwnd.c
Modified: trunk/reactos/dll/win32/user32/windows/defwnd.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/user32/windows/d…
==============================================================================
--- trunk/reactos/dll/win32/user32/windows/defwnd.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/user32/windows/defwnd.c [iso-8859-1] Tue Sep 23 02:33:44 2008
@@ -76,7 +76,7 @@
HPEN STDCALL
GetSysColorPen(int nIndex)
{
- if(nIndex >= 0 && nIndex <= NUM_SYSCOLORS)
+ if(nIndex >= 0 && nIndex < NUM_SYSCOLORS)
{
return g_psi->SysColorPens[nIndex];
}