From b6b84ffaf51673a3b9b2851602428ac815b680c4 Mon Sep 17 00:00:00 2001 From: Tobias Weimer Date: Sun, 25 Jan 2015 21:39:23 +0000 Subject: TabSRMM: - Fixed memory issues - Fixed translation issue (fixes #869) git-svn-id: http://svn.miranda-ng.org/main/trunk@11909 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/TabSRMM/src/modplus.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'plugins/TabSRMM/src/modplus.cpp') diff --git a/plugins/TabSRMM/src/modplus.cpp b/plugins/TabSRMM/src/modplus.cpp index 79d775501c..42dca25d9d 100644 --- a/plugins/TabSRMM/src/modplus.cpp +++ b/plugins/TabSRMM/src/modplus.cpp @@ -58,8 +58,8 @@ static int RegisterCustomButton(WPARAM, LPARAM) bbd.dwButtonID = 1; bbd.dwDefPos = 200; bbd.hIcon = PluginConfig.g_buttonBarIconHandles[3]; - bbd.pszModuleName = (char*)"Tabmodplus"; - bbd.ptszTooltip = TranslateT("Insert [img] tag / surround selected text with [img][/img]"); + bbd.pszModuleName = "Tabmodplus"; + bbd.ptszTooltip = LPGENT("Insert [img] tag / surround selected text with [img][/img]"); return CallService(MS_BB_ADDBUTTON, 0, (LPARAM)&bbd); } @@ -71,7 +71,7 @@ static int CustomButtonPressed(WPARAM wParam, LPARAM lParam) BBButton bbd = { sizeof(bbd) }; bbd.dwButtonID = 1; - bbd.pszModuleName = (char *)"Tabmodplus"; + bbd.pszModuleName = "Tabmodplus"; CallService(MS_BB_GETBUTTONSTATE, wParam, (LPARAM)&bbd); TCHAR *pszText = _T(""); @@ -139,14 +139,14 @@ static int CustomButtonPressed(WPARAM wParam, LPARAM lParam) case 3: pszFormatedText = _T("[img]"); - bbd.ptszTooltip = TranslateT("Insert [img] tag / surround selected text with [img][/img]"); + bbd.ptszTooltip = LPGENT("Insert [img] tag / surround selected text with [img][/img]"); CallService(MS_BB_SETBUTTONSTATE, wParam, (LPARAM)&bbd); break; case 4: pszFormatedText = _T("[/img]"); - bbd.ptszTooltip = TranslateT("Insert [img] tag / surround selected text with [img][/img]"); + bbd.ptszTooltip = LPGENT("Insert [img] tag / surround selected text with [img][/img]"); CallService(MS_BB_SETBUTTONSTATE, wParam, (LPARAM)&bbd); break; } @@ -162,7 +162,7 @@ static int CustomButtonPressed(WPARAM wParam, LPARAM lParam) return 1; } -int ModPlus_Init(WPARAM, LPARAM) +int ModPlus_Init() { HookEvent(ME_MSG_BUTTONPRESSED, CustomButtonPressed); HookEvent(ME_MSG_TOOLBARLOADED, RegisterCustomButton); -- cgit v1.2.3