summaryrefslogtreecommitdiff
path: root/plugins/FlashAvatars/src
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-04-07 16:14:47 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-04-07 16:14:47 +0000
commit7339bc08a765b87b0140e350a05fcf0d22a57722 (patch)
treed3031f91d458a14cf4e24fe461c8e143c0f18cc9 /plugins/FlashAvatars/src
parentfa23da25513fa2d056413cadb51ae3fadc3b5e5d (diff)
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
Diffstat (limited to 'plugins/FlashAvatars/src')
-rw-r--r--plugins/FlashAvatars/src/cflash.cpp10
1 files changed, 5 insertions, 5 deletions
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;