diff options
author | George Hazan <george.hazan@gmail.com> | 2014-03-25 18:14:32 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-03-25 18:14:32 +0000 |
commit | edc83404876270de7b896624b5cc8ddab96912b7 (patch) | |
tree | 10778d31973c05175b750540e7dbec8f31b51757 | |
parent | f1be827b52ea7e029103328930e14c04c2ab92b9 (diff) |
fix for langpack reload
git-svn-id: http://svn.miranda-ng.org/main/trunk@8746 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-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);
|