From 7339bc08a765b87b0140e350a05fcf0d22a57722 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 7 Apr 2013 16:14:47 +0000 Subject: mir_getCLI() - a helper for MS_CLIST_RETRIEVE_INTERFACE, just call it without parameters git-svn-id: http://svn.miranda-ng.org/main/trunk@4368 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/FlashAvatars/src/cflash.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'plugins/FlashAvatars/src/cflash.cpp') diff --git a/plugins/FlashAvatars/src/cflash.cpp b/plugins/FlashAvatars/src/cflash.cpp index 7153d41c9f..25dcfb5856 100644 --- a/plugins/FlashAvatars/src/cflash.cpp +++ b/plugins/FlashAvatars/src/cflash.cpp @@ -58,6 +58,7 @@ HINSTANCE g_hInst = 0; int hLangpack; +CLIST_INTERFACE *pcli; HANDLE hNetlibUser; @@ -208,17 +209,15 @@ static void __cdecl loadFlash_Thread(void *p) { flash->Release(); } -static void ShowBalloon(TCHAR *title, TCHAR *msg, int icon) { +static void ShowBalloon(TCHAR *title, TCHAR *msg, int icon) +{ MIRANDASYSTRAYNOTIFY msn = {0}; msn.cbSize = sizeof(MIRANDASYSTRAYNOTIFY); msn.dwInfoFlags = icon | NIIF_INTERN_UNICODE; msn.tszInfo = TranslateTS(msg); msn.tszInfoTitle = TranslateTS(title); msn.uTimeout = 5000; - - CLIST_INTERFACE* c = (CLIST_INTERFACE*)CallService(MS_CLIST_RETRIEVE_INTERFACE, 0, (LPARAM)g_hInst); - if (c) - c->pfnCListTrayNotify(&msn); + pcli->pfnCListTrayNotify(&msn); } static void prepareFlash(char* pProto, const TCHAR* pUrl, FLASHAVATAR& fa, IShockwaveFlash* flash) @@ -615,6 +614,7 @@ extern "C" __declspec(dllexport) PLUGININFOEX * MirandaPluginInfoEx(DWORD mirand extern "C" int __declspec(dllexport) Load(void) { mir_getLP(&pluginInfo); + mir_getCLI(); HookEvent(ME_SYSTEM_MODULESLOADED, systemModulesLoaded); return 0; -- cgit v1.2.3