diff options
author | George Hazan <george.hazan@gmail.com> | 2013-04-07 16:14:47 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-04-07 16:14:47 +0000 |
commit | 7339bc08a765b87b0140e350a05fcf0d22a57722 (patch) | |
tree | d3031f91d458a14cf4e24fe461c8e143c0f18cc9 /plugins/FlashAvatars | |
parent | fa23da25513fa2d056413cadb51ae3fadc3b5e5d (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')
-rw-r--r-- | plugins/FlashAvatars/src/cflash.cpp | 10 |
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;
|