From 81e8caf42867b65677efe2bffaa52ecff7303c3a Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 27 Jun 2012 13:58:25 +0000 Subject: no more pluginLink in load() git-svn-id: http://svn.miranda-ng.org/main/trunk@652 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/RecentContacts/RecentContacts.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'plugins/RecentContacts/RecentContacts.cpp') diff --git a/plugins/RecentContacts/RecentContacts.cpp b/plugins/RecentContacts/RecentContacts.cpp index 08bd2d5566..ccea08b33b 100644 --- a/plugins/RecentContacts/RecentContacts.cpp +++ b/plugins/RecentContacts/RecentContacts.cpp @@ -8,7 +8,6 @@ static const basic_string ::size_type npos = -1; char *szProto; HINSTANCE hInst = NULL; -PLUGINLINK *pluginLink = NULL; int hLangpack = 0; @@ -634,10 +633,11 @@ INT_PTR ToggleIgnore (WPARAM wParam, LPARAM lParam) ///////////////////////////////////////////////////////////////////////////////////////// -extern "C" __declspec(dllexport) int Load(PLUGINLINK *link) +extern "C" __declspec(dllexport) int Load(void) { - pluginLink = link; - mir_getLP( &pluginInfo ); + + mir_getLP( &pluginInfo ); + CoInitialize(NULL); hWindowList = (HANDLE)CallService(MS_UTILS_ALLOCWINDOWLIST, 0, 0); -- cgit v1.2.3