From 69ed16bdb72b07c8963e28e0216d4691fe7bc946 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 5 Aug 2014 19:49:49 +0000 Subject: 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 --- plugins/TabSRMM/src/generic_msghandlers.cpp | 2 +- plugins/TabSRMM/src/globals.cpp | 1 - plugins/TabSRMM/src/globals.h | 1 - 3 files changed, 1 insertion(+), 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; -- cgit v1.2.3