summaryrefslogtreecommitdiff
path: root/plugins/SimpleAR
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/SimpleAR')
-rw-r--r--plugins/SimpleAR/src/Main.cpp2
-rw-r--r--plugins/SimpleAR/src/Options.cpp2
2 files changed, 3 insertions, 1 deletions
diff --git a/plugins/SimpleAR/src/Main.cpp b/plugins/SimpleAR/src/Main.cpp
index c4b35e8611..196fc1b722 100644
--- a/plugins/SimpleAR/src/Main.cpp
+++ b/plugins/SimpleAR/src/Main.cpp
@@ -16,6 +16,7 @@ Copyright (C) 2000-2 Richard Hughes, Roland Rabien & Tristan Van de Vreede
#include "Common.h"
+CLIST_INTERFACE *pcli;
HINSTANCE hinstance;
HGENMENU hToggle, hEnableMenu;
@@ -261,6 +262,7 @@ IconItemT iconList[] =
extern "C" int __declspec(dllexport)Load(void)
{
mir_getLP(&pluginInfoEx);
+ mir_getCLI();
CreateServiceFunction(protocolname"/ToggleEnable", ToggleEnable);
CreateServiceFunction(protocolname"/ToggleAutoanswer",Toggle);
diff --git a/plugins/SimpleAR/src/Options.cpp b/plugins/SimpleAR/src/Options.cpp
index 011b19ee72..81e896d3d9 100644
--- a/plugins/SimpleAR/src/Options.cpp
+++ b/plugins/SimpleAR/src/Options.cpp
@@ -26,7 +26,7 @@ INT_PTR CALLBACK DlgProcOpts(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lPara
for (INT c = ID_STATUS_ONLINE; c < ID_STATUS_IDLE; c++)
{
mir_snprintf(tszStatus, _countof(tszStatus), "%d", c);
- pszStatus=(TCHAR*)CallService(MS_CLIST_GETSTATUSMODEDESCRIPTION,(WPARAM)c,GSMDF_TCHAR);
+ pszStatus = pcli->pfnGetStatusModeDescription(c, 0);
if (c == ID_STATUS_ONLINE || c == ID_STATUS_FREECHAT || c == ID_STATUS_INVISIBLE)
continue;
else