summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-04-27 21:54:19 +0200
committerGeorge Hazan <ghazan@miranda.im>2018-04-27 21:55:09 +0200
commit23b0057349dddae70298c452db43fd9699780a05 (patch)
tree756c0708b8272abc21dc71d4d7bd80f8a602e815 /src
parent70f9524c663150e887f124be1209d77220c3619e (diff)
fixes #1311 (Wrong langpack listed in VersionInfo)
Diffstat (limited to 'src')
-rw-r--r--src/mir_core/src/langpack.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mir_core/src/langpack.cpp b/src/mir_core/src/langpack.cpp
index 3fdd9f6d3d..7de71d4739 100644
--- a/src/mir_core/src/langpack.cpp
+++ b/src/mir_core/src/langpack.cpp
@@ -388,6 +388,10 @@ MIR_CORE_DLL(int) LoadLangPack(const wchar_t *ptszLangPack)
if (g_entryCount)
UnloadLangPackModule();
+ langPack.Locale = 0;
+ langPack.codepage = CP_ACP;
+ langPack.flags = 0;
+
// exists & not a directory?
DWORD dwAttrib = GetFileAttributes(tszFullPath);
if (dwAttrib == INVALID_FILE_ATTRIBUTES || (dwAttrib & FILE_ATTRIBUTE_DIRECTORY))