From dd68d9797b3a3ffce48883f58ffc07d226533711 Mon Sep 17 00:00:00 2001 From: kichik Date: Wed, 28 Aug 2002 22:47:25 +0000 Subject: [PATCH] Outputs the right language git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@805 212acab6-be3b-0410-9dea-997c60f758d6 --- Contrib/LangDLL/LangDLL.c | 2 +- Plugins/LangDLL.dll | Bin 4096 -> 4096 bytes 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/Contrib/LangDLL/LangDLL.c b/Contrib/LangDLL/LangDLL.c index 923aa363..eea62664 100644 --- a/Contrib/LangDLL/LangDLL.c +++ b/Contrib/LangDLL/LangDLL.c @@ -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: diff --git a/Plugins/LangDLL.dll b/Plugins/LangDLL.dll index cbe24af5332471e16a0e33a727c99822ae2a4804..3d5e9be71b6e8f081a3cf3c20b562fee841dccb5 100644 GIT binary patch delta 218 zcmV<0044u`Ab=o{-~q&u;U57zlK}zO0fv*=0iOY|vv~rU0U2OObObZN>mv`hMG#1I zAxL!=XaFz(5a?8sD+DkYAT$6FE6AY?FaQw$bjbYZ69NDLSyt=5lWYXr0qCmv`hMG#1I zAxL!=XaFz(5a>;lD+DkR3@`u?|8&6w=o10}09jV+#glUc+X3&hPX)08kuV3c2($qK zFO#(iBLPdZ*$FoUVr?*UForOmFt{+yFxfERF!nG8F%U5uF(ffSF;OvEF=a7sF?BJ9 zF^n;sF`_ZMF~>2{G21ciG5Ik9G7B;iG8-}_GAlAUGDI?6GGj7sGJP_IGLkZwGN>}G PGPW|zGSxD(5ekk04DLs^