summaryrefslogtreecommitdiff
path: root/plugins/Clist_nicer/src/init.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-04-08 11:37:28 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-04-08 11:37:28 +0000
commit6b05d57a1d02f233409a2e4392e22b7a3a756a8f (patch)
tree81da58d8ee4ed00139cf6da3fcc03a6405ab69be /plugins/Clist_nicer/src/init.cpp
parent67abd5767f442340f8c98cb08dc0b43ecb5cf783 (diff)
fix for the undocumented MS_CLIST_RETRIEVE_INTERFACE feature
git-svn-id: http://svn.miranda-ng.org/main/trunk@4384 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Clist_nicer/src/init.cpp')
-rw-r--r--plugins/Clist_nicer/src/init.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/Clist_nicer/src/init.cpp b/plugins/Clist_nicer/src/init.cpp
index a812acaeb1..6a1852e33e 100644
--- a/plugins/Clist_nicer/src/init.cpp
+++ b/plugins/Clist_nicer/src/init.cpp
@@ -208,8 +208,9 @@ static int fnIconFromStatusMode( const char* szProto, int status, HANDLE hContac
extern "C" int __declspec(dllexport) CListInitialise()
{
- mir_getTMI(&tmi);
mir_getLP( &pluginInfo );
+ mir_getCLI();
+ mir_getTMI(&tmi);
API::onInit();
RegisterCLUIFrameClasses();
@@ -278,7 +279,7 @@ extern "C" int __declspec(dllexport) CListInitialise()
PreloadContactListModule();
// get the clist interface
- mir_getCLI();
+ pcli->hInst = g_hInst;
pcli->pfnBuildGroupPopupMenu = BuildGroupPopupMenu;
pcli->pfnCluiProtocolStatusChanged = CluiProtocolStatusChanged;
pcli->pfnCompareContacts = CompareContacts;