1
0
mirror of https://github.com/veracrypt/VeraCrypt.git synced 2025-11-11 11:08:02 -06:00

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.

This commit is contained in:
Mounir IDRASSI
2020-03-10 20:18:08 +01:00
parent 329d4f1c90
commit 5afa0815c9

View File

@@ -209,6 +209,7 @@ static BOOL LoadLanguageData (int resourceid, BOOL bForceSetPreferredLanguage, B
LocalizationActive = FALSE; LocalizationActive = FALSE;
ActiveLangPackVersion[0] = 0; ActiveLangPackVersion[0] = 0;
ClearDictionaryPool (); ClearDictionaryPool ();
LanguageResource = NULL;
if ((resourceid == 0) && (PreferredLangId[0] != 0)) if ((resourceid == 0) && (PreferredLangId[0] != 0))
StringCbCopyA (langId, sizeof(langId), PreferredLangId); StringCbCopyA (langId, sizeof(langId), PreferredLangId);