From 0556f99729354666e6a08e0b14f332d7ed3f64ef Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Thu, 13 Nov 2014 20:12:58 +0000 Subject: one more part not needed checks git-svn-id: http://svn.miranda-ng.org/main/trunk@10985 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- src/modules/clist/clcmsgs.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/modules/clist') diff --git a/src/modules/clist/clcmsgs.cpp b/src/modules/clist/clcmsgs.cpp index a3d477c871..c2bfae6ae4 100644 --- a/src/modules/clist/clcmsgs.cpp +++ b/src/modules/clist/clcmsgs.cpp @@ -174,7 +174,7 @@ LRESULT fnProcessExternalMessages(HWND hwnd, struct ClcData *dat, UINT msg, WPAR return (LRESULT)dat->himlExtraColumns; case CLM_GETFONT: - if (wParam < 0 || wParam > FONTID_MAX) + if (wParam > FONTID_MAX) return 0; return (LRESULT)dat->fontInfo[wParam].hFont; @@ -301,7 +301,7 @@ LRESULT fnProcessExternalMessages(HWND hwnd, struct ClcData *dat, UINT msg, WPAR } case CLM_GETTEXTCOLOR: - if (wParam < 0 || wParam > FONTID_MAX) + if (wParam > FONTID_MAX) return 0; return (LRESULT)dat->fontInfo[wParam].colour; @@ -390,7 +390,7 @@ LRESULT fnProcessExternalMessages(HWND hwnd, struct ClcData *dat, UINT msg, WPAR break; case CLM_SETFONT: - if (HIWORD(lParam) < 0 || HIWORD(lParam) > FONTID_MAX) + if (HIWORD(lParam) > FONTID_MAX) return 0; dat->fontInfo[HIWORD(lParam)].hFont = (HFONT) wParam; @@ -457,7 +457,7 @@ LRESULT fnProcessExternalMessages(HWND hwnd, struct ClcData *dat, UINT msg, WPAR break; case CLM_SETTEXTCOLOR: - if (wParam < 0 || wParam > FONTID_MAX) + if (wParam > FONTID_MAX) break; dat->fontInfo[wParam].colour = lParam; break; -- cgit v1.2.3