From 6b05d57a1d02f233409a2e4392e22b7a3a756a8f Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 8 Apr 2013 11:37:28 +0000 Subject: 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 --- plugins/Clist_modern/src/init.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'plugins/Clist_modern/src') 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; -- cgit v1.2.3