VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Common/Language.c
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2021-12-04 23:57:32 +0100
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2021-12-04 23:59:09 +0100
commite2ed21ff8b6f519e8f45d176b7322effd876e5ca (patch)
treed3a1755892913f05f8b066f271ce5845eb3a5aed /src/Common/Language.c
parenta21b2270e8db93d231fa0a3d60776043c9a0f9bc (diff)
downloadVeraCrypt-e2ed21ff8b6f519e8f45d176b7322effd876e5ca.tar.gz
VeraCrypt-e2ed21ff8b6f519e8f45d176b7322effd876e5ca.zip
Windows: Don't use version string suffix in language files version check. It is empty by default and for special build we want to use the same language files as standard build
Diffstat (limited to 'src/Common/Language.c')
-rw-r--r--src/Common/Language.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Common/Language.c b/src/Common/Language.c
index ffccd44e..844f4dad 100644
--- a/src/Common/Language.c
+++ b/src/Common/Language.c
@@ -226,7 +226,7 @@ static BOOL LoadLanguageData (int resourceid, BOOL bForceSetPreferredLanguage, B
XmlGetAttributeText (xml, "prog-version", attr, sizeof (attr));
// Check version of external language file
- if (defaultLangParsed && strcmp (attr, VERSION_STRING VERSION_STRING_SUFFIX) && strcmp (attr, "DEBUG"))
+ if (defaultLangParsed && strcmp (attr, VERSION_STRING) && strcmp (attr, "DEBUG"))
{
wchar_t m[2048];
StringCbPrintfW (m, sizeof(m), L"The installed language pack is incompatible with this version of VeraCrypt (the language pack is for VeraCrypt %hs). A newer version may be available at www.idrix.fr.\n\nTo prevent this message from being displayed, do any of the following:\n\n- Select 'Settings' > 'Language'; then select 'English' and click 'OK'.\n\n- Remove or replace the language pack with a compatible version (the language pack may reside e.g. in 'C:\\Program Files\\VeraCrypt' or '%%LOCALAPPDATA%%\\VirtualStore\\Program Files\\VeraCrypt', etc.)", attr);