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