Outputs the right language

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@805 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
kichik 2002-08-28 22:47:25 +00:00
parent df997ad3d9
commit dd68d9797b
2 changed files with 1 additions and 1 deletions

View file

@ -81,7 +81,7 @@ BOOL CALLBACK DialogProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
case WM_COMMAND:
switch (LOWORD(wParam)) {
case IDOK:
pushstring(langs[SendDlgItemMessage(hwndDlg, IDC_LANGUAGE, CB_GETCURSEL, 0, 0)].id);
pushstring(langs[langs_num-SendDlgItemMessage(hwndDlg, IDC_LANGUAGE, CB_GETCURSEL, 0, 0)-1].id);
EndDialog(hwndDlg, 0);
break;
case IDCANCEL: