From edc83404876270de7b896624b5cc8ddab96912b7 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 25 Mar 2014 18:14:32 +0000 Subject: fix for langpack reload git-svn-id: http://svn.miranda-ng.org/main/trunk@8746 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- src/mir_core/langpack.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); -- cgit v1.2.3