summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-06-18 14:10:46 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-06-18 14:10:46 +0000
commit98ecab59cd29c9b45026d61aa98dcfb87ef5bd2d (patch)
treecbf8da893b295f115e6d10d9a2447bf1aad486d1
parent6bcce0307d2baf4db5a5802b9c3bb3f2714254db (diff)
fixes fpr memleaks etc
git-svn-id: http://svn.miranda-ng.org/main/trunk@472 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r--plugins/TopToolBar/toolbar.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/TopToolBar/toolbar.cpp b/plugins/TopToolBar/toolbar.cpp
index 94131d4c62..c5d2d59551 100644
--- a/plugins/TopToolBar/toolbar.cpp
+++ b/plugins/TopToolBar/toolbar.cpp
@@ -122,10 +122,10 @@ void InsertLBut(int i)
ttb.hIconUp = (HICON)LoadImage(hInst, MAKEINTRESOURCE(IDI_RUN), IMAGE_ICON, 16, 16, LR_DEFAULTCOLOR);
ttb.dwFlags = TTBBF_VISIBLE|TTBBF_ISLBUTTON;
ttb.pszService = TTB_LAUNCHSERVICE;
- ttb.name = _strdup(Translate("Default"));
- ttb.program = _tcsdup( _T("Execute Path"));
+ ttb.name = LPGEN("Default");
+ ttb.program = _T("Execute Path");
ttb.wParamDown = i;
- ttb.lParamDown = TTBAddButton(( WPARAM )&ttb, 0);;
+ ttb.lParamDown = TTBAddButton(( WPARAM )&ttb, 0);
CallService(MS_TTB_SETBUTTONOPTIONS, MAKEWPARAM(TTBO_ALLDATA, ttb.lParamDown), (LPARAM)&ttb);
}