check for CB_ERR return value from CB_GETITEMDATA

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4388 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
kichik 2005-11-11 21:29:35 +00:00
parent c6ff05d3a0
commit 6cdf2cbce6

View file

@ -80,7 +80,7 @@ BOOL CALLBACK DialogProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
// push result on the stack
i = SendDlgItemMessage(hwndDlg, IDC_LANGUAGE, CB_GETCURSEL, 0, 0);
i = SendDlgItemMessage(hwndDlg, IDC_LANGUAGE, CB_GETITEMDATA, i, 0);
if (i) {
if (i != CB_ERR && i) {
pushstring((char *) i);
} else {
// ?!