diff options
-rw-r--r-- | plugins/CrashDumper/src/utils.cpp | 6 | ||||
-rw-r--r-- | src/mir_core/src/langpack.cpp | 4 |
2 files changed, 6 insertions, 4 deletions
diff --git a/plugins/CrashDumper/src/utils.cpp b/plugins/CrashDumper/src/utils.cpp index 7a5e8b9d4f..b86fa072f6 100644 --- a/plugins/CrashDumper/src/utils.cpp +++ b/plugins/CrashDumper/src/utils.cpp @@ -363,11 +363,9 @@ void GetLanguagePackString(CMStringW &buffer) else
buffer.Append(lang);
}
- else
- buffer.Append(L"Locale id invalid");
+ else buffer.Append(L"Locale id invalid");
}
- else
- buffer.Append(L"No language pack installed");
+ else buffer.Append(L"No language pack installed");
}
void GetWow64String(CMStringW &buffer)
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))
|