From 41f218316dce6b1bfcfb0f2754379fa74c5138ed Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 19 Oct 2013 14:35:34 +0000 Subject: warning fixes git-svn-id: http://svn.miranda-ng.org/main/trunk@6534 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- src/modules/options/iconheader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules/options/iconheader.cpp') diff --git a/src/modules/options/iconheader.cpp b/src/modules/options/iconheader.cpp index a185e1aecd..ab23c41d2e 100644 --- a/src/modules/options/iconheader.cpp +++ b/src/modules/options/iconheader.cpp @@ -517,7 +517,7 @@ static LRESULT CALLBACK MIcoTabWndProc(HWND hwndDlg, UINT msg, WPARAM wParam, L return itc->nSelectedIdx; case ITCM_GETITEMDATA: - if ((int)wParam < itc->pList.getCount()) + if ((int)wParam >= 0 && (int)wParam < itc->pList.getCount()) return ((MIcoTab *)itc->pList[wParam])->data; return 0; -- cgit v1.2.3