Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/kornelski/7z.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '7zip/FileManager/LangUtils.cpp')
-rwxr-xr-x7zip/FileManager/LangUtils.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/7zip/FileManager/LangUtils.cpp b/7zip/FileManager/LangUtils.cpp
index 1f28c52c..decff306 100755
--- a/7zip/FileManager/LangUtils.cpp
+++ b/7zip/FileManager/LangUtils.cpp
@@ -103,7 +103,7 @@ void LoadLangs(CObjectVector<CLangEx> &langs)
continue;
CLangEx lang;
UString filePath = folderPath + fileInfo.Name;
- const kExtSize = 4;
+ const int kExtSize = 4;
if (fileInfo.Name.Right(kExtSize) != L".txt")
continue;
lang.ShortName = fileInfo.Name.Left(fileInfo.Name.Length() - kExtSize);
@@ -138,8 +138,8 @@ void FindMatchLang(UString &shortName)
{
shortName.Empty();
LANGID langID = GetUserDefaultLangID();
- WORD primLang = PRIMARYLANGID(langID);
- WORD subLang = SUBLANGID(langID);
+ WORD primLang = (WORD)(PRIMARYLANGID(langID));
+ WORD subLang = (WORD)(SUBLANGID(langID));
CObjectVector<CLangEx> langs;
LoadLangs(langs);
for (int i = 0; i < langs.Size(); i++)