From eb68ba432850b5c446f1729e8d99f5557dd1894f Mon Sep 17 00:00:00 2001 From: Christoph von Wittich Date: Tue, 23 Sep 2008 07:33:44 +0000 Subject: [PATCH] overrun of static array Fix for Coverity error CID: 548. svn path=/trunk/; revision=36412 --- reactos/dll/win32/user32/windows/defwnd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/dll/win32/user32/windows/defwnd.c b/reactos/dll/win32/user32/windows/defwnd.c index 8205bb2f4e0..36ba8c35f1e 100644 --- a/reactos/dll/win32/user32/windows/defwnd.c +++ b/reactos/dll/win32/user32/windows/defwnd.c @@ -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]; }