summaryrefslogtreecommitdiff
path: root/src/core/stdauth
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/stdauth')
-rw-r--r--src/core/stdauth/src/auth.cpp4
-rw-r--r--src/core/stdauth/src/main.cpp2
2 files changed, 4 insertions, 2 deletions
diff --git a/src/core/stdauth/src/auth.cpp b/src/core/stdauth/src/auth.cpp
index 1358e7858c..adb4577ab3 100644
--- a/src/core/stdauth/src/auth.cpp
+++ b/src/core/stdauth/src/auth.cpp
@@ -93,7 +93,7 @@ static int AuthEventAdded(WPARAM, LPARAM lParam)
cli.hIcon = Skin_LoadIcon(SKINICON_AUTH_REQUEST);
cli.pszService = MS_AUTH_SHOWREQUEST;
- CallService(MS_CLIST_ADDEVENT, 0, (LPARAM)&cli);
+ pcli->pfnAddEvent(&cli);
}
else if (dbei.eventType == EVENTTYPE_ADDED) {
SkinPlaySound("AddedEvent");
@@ -104,7 +104,7 @@ static int AuthEventAdded(WPARAM, LPARAM lParam)
cli.hIcon = Skin_LoadIcon(SKINICON_AUTH_ADD);
cli.pszService = MS_AUTH_SHOWADDED;
- CallService(MS_CLIST_ADDEVENT, 0, (LPARAM)&cli);
+ pcli->pfnAddEvent(&cli);
}
return 0;
}
diff --git a/src/core/stdauth/src/main.cpp b/src/core/stdauth/src/main.cpp
index f5f9e27d74..bfda91b735 100644
--- a/src/core/stdauth/src/main.cpp
+++ b/src/core/stdauth/src/main.cpp
@@ -23,6 +23,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
int LoadSendRecvAuthModule(void);
+CLIST_INTERFACE *pcli;
HINSTANCE hInst;
int hLangpack;
@@ -56,6 +57,7 @@ extern "C" __declspec(dllexport) const MUUID MirandaInterfaces[] = { MIID_SRAUTH
extern "C" int __declspec(dllexport) Load(void)
{
mir_getLP(&pluginInfo);
+ mir_getCLI();
LoadSendRecvAuthModule();
return 0;