summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2014-08-05 19:49:49 +0000
committerGeorge Hazan <george.hazan@gmail.com>2014-08-05 19:49:49 +0000
commit69ed16bdb72b07c8963e28e0216d4691fe7bc946 (patch)
tree305e88753b2ea9a2fc929ab57954df4caf063bb5 /plugins
parent37ecda18c1848b307153f8bd3d5eb3e138041c6c (diff)
fix for a crash in tabSRMM after reloading langpack
git-svn-id: http://svn.miranda-ng.org/main/trunk@10083 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins')
-rw-r--r--plugins/TabSRMM/src/generic_msghandlers.cpp2
-rw-r--r--plugins/TabSRMM/src/globals.cpp1
-rw-r--r--plugins/TabSRMM/src/globals.h1
3 files changed, 1 insertions, 3 deletions
diff --git a/plugins/TabSRMM/src/generic_msghandlers.cpp b/plugins/TabSRMM/src/generic_msghandlers.cpp
index 294cd923ce..3af3c110ec 100644
--- a/plugins/TabSRMM/src/generic_msghandlers.cpp
+++ b/plugins/TabSRMM/src/generic_msghandlers.cpp
@@ -129,7 +129,7 @@ void TSAPI DM_InitTip(TWindowData *dat)
ZeroMemory(&dat->ti, sizeof(dat->ti));
dat->ti.cbSize = sizeof(dat->ti);
- dat->ti.lpszText = PluginConfig.m_szNoStatus;
+ dat->ti.lpszText = TranslateT("No status message");
dat->ti.hinst = g_hInst;
dat->ti.hwnd = dat->hwnd;
dat->ti.uFlags = TTF_TRACK | TTF_IDISHWND | TTF_TRANSPARENT;
diff --git a/plugins/TabSRMM/src/globals.cpp b/plugins/TabSRMM/src/globals.cpp
index 74bc2b6389..56d95ec1cd 100644
--- a/plugins/TabSRMM/src/globals.cpp
+++ b/plugins/TabSRMM/src/globals.cpp
@@ -195,7 +195,6 @@ void CGlobals::reloadSettings(bool fReloadSkins)
m_smcxicon = 16;
m_smcyicon = 16;
m_PasteAndSend = M.GetByte("pasteandsend", 1);
- m_szNoStatus = TranslateT("No status message");
m_LangPackCP = ServiceExists(MS_LANGPACK_GETCODEPAGE) ? CallService(MS_LANGPACK_GETCODEPAGE, 0, 0) : CP_ACP;
m_visualMessageSizeIndicator = M.GetByte("msgsizebar", 0);
m_autoSplit = M.GetByte("autosplit", 0);
diff --git a/plugins/TabSRMM/src/globals.h b/plugins/TabSRMM/src/globals.h
index b709c0b754..4e88571588 100644
--- a/plugins/TabSRMM/src/globals.h
+++ b/plugins/TabSRMM/src/globals.h
@@ -125,7 +125,6 @@ public:
int m_IdleDetect;
int m_smcxicon, m_smcyicon;
int m_PasteAndSend;
- TCHAR *m_szNoStatus;
COLORREF crIncoming, crOutgoing, crOldIncoming, crOldOutgoing, crStatus;
BOOL bUnicodeBuild;
HFONT hFontCaption;