diff options
author | George Hazan <ghazan@miranda.im> | 2018-05-22 20:18:38 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-05-22 20:18:38 +0300 |
commit | cfd355e6c8035086c416c161a884242c1bb1800a (patch) | |
tree | 21af14390a6ae232d67f7b45cd699a4781b901b9 /plugins/MirLua/Modules | |
parent | f545bc769a16d1ff7b302733f793cbcbd397cdca (diff) |
no more need in hLangpack variable *YAHOO*
Diffstat (limited to 'plugins/MirLua/Modules')
-rw-r--r-- | plugins/MirLua/Modules/m_toptoolbar/src/main.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/plugins/MirLua/Modules/m_toptoolbar/src/main.cpp b/plugins/MirLua/Modules/m_toptoolbar/src/main.cpp index 621467c431..b575527e70 100644 --- a/plugins/MirLua/Modules/m_toptoolbar/src/main.cpp +++ b/plugins/MirLua/Modules/m_toptoolbar/src/main.cpp @@ -1,8 +1,5 @@ #include "stdafx.h"
-int _hLang;
-int &hLangpack(_hLang);
-
static TTBButton* MakeTBButton(lua_State *L)
{
TTBButton *tbb = (TTBButton*)mir_calloc(sizeof(TTBButton));
@@ -67,7 +64,7 @@ static int lua_AddButton(lua_State *L) TTBButton *tbb = MakeTBButton(L);
- HANDLE res = TopToolbar_AddButton(tbb);
+ HANDLE res = (HANDLE)CallService(MS_TTB_ADDBUTTON, (WPARAM)tbb, 0);
if (res == (HANDLE)-1)
{
lua_pushnil(L);
|