diff options
Diffstat (limited to 'plugins/MirLua/Modules/m_toptoolbar/src')
-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);
|