diff options
author | George Hazan <george.hazan@gmail.com> | 2013-04-08 11:37:28 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-04-08 11:37:28 +0000 |
commit | 6b05d57a1d02f233409a2e4392e22b7a3a756a8f (patch) | |
tree | 81da58d8ee4ed00139cf6da3fcc03a6405ab69be /plugins/Clist_modern/src/init.cpp | |
parent | 67abd5767f442340f8c98cb08dc0b43ecb5cf783 (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_modern/src/init.cpp')
-rw-r--r-- | plugins/Clist_modern/src/init.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/Clist_modern/src/init.cpp b/plugins/Clist_modern/src/init.cpp index 360d4dfebd..ec23b806a0 100644 --- a/plugins/Clist_modern/src/init.cpp +++ b/plugins/Clist_modern/src/init.cpp @@ -82,6 +82,10 @@ extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD miranda extern "C" __declspec(dllexport) int CListInitialise()
{
+ mir_getLP( &pluginInfo );
+ mir_getCLI();
+ mir_getTMI(&tmi);
+
HMODULE hKernel = GetModuleHandleA("kernel32.dll");
fnTryEnterCriticalSection = ( pfnTryEnterCriticalSection )GetProcAddress( hKernel, "TryEnterCriticalSection");
@@ -94,8 +98,6 @@ extern "C" __declspec(dllexport) int CListInitialise() fnGetAncestor = MyGetAncestor;
g_dwMainThreadID = GetCurrentThreadId();
- mir_getTMI(&tmi);
- mir_getLP( &pluginInfo );
CHECKRES ( PreLoadContactListModule ( ) );
CHECKRES ( SubclassClistInterface ( ) );
@@ -142,9 +144,6 @@ extern "C" __declspec(dllexport) int Unload(void) static HRESULT SubclassClistInterface()
{
- // get the contact list interface
- mir_getCLI();
-
// OVERLOAD CLIST INTERFACE FUNCTIONS
//
// Naming convention is:
@@ -154,6 +153,7 @@ static HRESULT SubclassClistInterface() corecli = *pcli;
+ pcli->hInst = g_hInst;
pcli->bDisplayLocked = TRUE;
pcli->pfnCheckCacheItem = cliCheckCacheItem;
|