VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Common/Language.c
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2020-03-10 20:18:08 +0100
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2020-03-10 20:20:50 +0100
commit5afa0815c96799ab78406d59d3b5b2298866cb10 (patch)
tree1609e95fcd2b60cefb06e2b5610cae22406e0b50 /src/Common/Language.c
parent329d4f1c909b94a5d3cbfd8a9e1b14feb7fa64ff (diff)
downloadVeraCrypt-5afa0815c96799ab78406d59d3b5b2298866cb10.tar.gz
VeraCrypt-5afa0815c96799ab78406d59d3b5b2298866cb10.zip
Windows setup: Fix wrong language used in installer if we select a language in the language selection dialog and then select English followed by OK.
Diffstat (limited to 'src/Common/Language.c')
-rw-r--r--src/Common/Language.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Common/Language.c b/src/Common/Language.c
index 6dbd8b61..ffccd44e 100644
--- a/src/Common/Language.c
+++ b/src/Common/Language.c
@@ -209,6 +209,7 @@ static BOOL LoadLanguageData (int resourceid, BOOL bForceSetPreferredLanguage, B
LocalizationActive = FALSE;
ActiveLangPackVersion[0] = 0;
ClearDictionaryPool ();
+ LanguageResource = NULL;
if ((resourceid == 0) && (PreferredLangId[0] != 0))
StringCbCopyA (langId, sizeof(langId), PreferredLangId);