diff options
author | George Hazan <george.hazan@gmail.com> | 2013-10-19 14:35:34 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-10-19 14:35:34 +0000 |
commit | 41f218316dce6b1bfcfb0f2754379fa74c5138ed (patch) | |
tree | 1cd44fe63c6ebabf70d8c4b6f34be37ab8e844f7 /src/modules | |
parent | 397e25f2b71347c7c83495fe5b25496ff3b02b75 (diff) |
warning fixes
git-svn-id: http://svn.miranda-ng.org/main/trunk@6534 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/options/iconheader.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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;
|