From 4882bc420186a4aef19be699e3f621dec932417d Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 2 Dec 2016 23:55:15 +0300 Subject: MS_SYSTEM_* services became functions --- plugins/MirLua/src/m_core.cpp | 2 +- plugins/MirLua/src/mlua_utils.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/MirLua/src') diff --git a/plugins/MirLua/src/m_core.cpp b/plugins/MirLua/src/m_core.cpp index fa4a769a74..46d6c50c8b 100644 --- a/plugins/MirLua/src/m_core.cpp +++ b/plugins/MirLua/src/m_core.cpp @@ -423,7 +423,7 @@ LUAMOD_API int luaopen_m_core(lua_State *L) lua_setfield(L, -2, "CALLSERVICE_NOTFOUND"); char version[128]; - CallService(MS_SYSTEM_GETVERSIONTEXT, (WPARAM)_countof(version), (LPARAM)version); + Miranda_GetVersionText(version, _countof(version)); lua_pushstring(L, ptrA(mir_utf8encode(version))); lua_setfield(L, -2, "Version"); diff --git a/plugins/MirLua/src/mlua_utils.cpp b/plugins/MirLua/src/mlua_utils.cpp index ec08831a1d..7323755ea5 100644 --- a/plugins/MirLua/src/mlua_utils.cpp +++ b/plugins/MirLua/src/mlua_utils.cpp @@ -18,7 +18,7 @@ void Log(const wchar_t *format, ...) void ShowNotification(const char *caption, const char *message, int flags, MCONTACT hContact) { - if (Miranda_Terminated()) + if (Miranda_IsTerminated()) return; if (ServiceExists(MS_POPUP_ADDPOPUPT) && db_get_b(NULL, "Popup", "ModuleIsEnabled", 1)) -- cgit v1.2.3