From d778f9505e1a1730399bb98430d517e2c90531bd Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 26 Mar 2013 12:34:54 +0000 Subject: git-svn-id: http://svn.miranda-ng.org/main/trunk@4199 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- src/core/stdmsg/src/msgoptions.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/stdmsg/src/msgoptions.cpp b/src/core/stdmsg/src/msgoptions.cpp index e2cc34d99e..b92bc17027 100644 --- a/src/core/stdmsg/src/msgoptions.cpp +++ b/src/core/stdmsg/src/msgoptions.cpp @@ -55,7 +55,7 @@ static BYTE MsgDlgGetFontDefaultCharset(const TCHAR* szFont) bool LoadMsgDlgFont(int i, LOGFONT* lf, COLORREF * colour) { - if (i > SIZEOF(fontOptionsList)) + if (i >= SIZEOF(fontOptionsList)) return false; char str[32]; -- cgit v1.2.3