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:
parent
c6ff05d3a0
commit
6cdf2cbce6
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
// ?!
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue