diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/mir_core/langpack.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mir_core/langpack.cpp b/src/mir_core/langpack.cpp index c6911ea135..f216f65242 100644 --- a/src/mir_core/langpack.cpp +++ b/src/mir_core/langpack.cpp @@ -702,6 +702,8 @@ void UnloadLangPackModule() g_pEntries = 0;
g_entryCount = g_entriesAlloced = 0;
}
+
+ langPack.tszFileName[0] = langPack.tszFullPath[0] = 0;
}
/////////////////////////////////////////////////////////////////////////////////////////
@@ -709,7 +711,7 @@ void UnloadLangPackModule() MIR_CORE_DLL(void) ReloadLangpack(TCHAR *pszStr)
{
if (pszStr == NULL)
- pszStr = langPack.tszFileName;
+ pszStr = NEWTSTR_ALLOCA(langPack.tszFileName);
UnloadLangPackModule();
LoadLangPack(pszStr);
|