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/TooltipNotify/src/main.cpp | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'plugins/TooltipNotify/src/main.cpp') diff --git a/plugins/TooltipNotify/src/main.cpp b/plugins/TooltipNotify/src/main.cpp index a634a012ae..a554819998 100644 --- a/plugins/TooltipNotify/src/main.cpp +++ b/plugins/TooltipNotify/src/main.cpp @@ -20,10 +20,6 @@ static int ContactSettingChanged(WPARAM wParam,LPARAM lParam); static int ProtoAck(WPARAM,LPARAM); static int ProtoContactIsTyping(WPARAM wParam,LPARAM lParam); - -// Globals -PLUGINLINK *pluginLink; // cannot be static since it is used for mim service calls - static HANDLE g_hContactSettingChanged = 0; static HANDLE g_hOptionsInitialize = 0; static HANDLE g_hModulesLoaded = 0; @@ -94,20 +90,16 @@ extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD miranda return &sPluginInfo; } -extern "C" int __declspec(dllexport) Load(PLUGINLINK *pLink) +extern "C" int __declspec(dllexport) Load(void) { - if (!g_bRightModule) return 0; - - pluginLink = pLink; mir_getLP(&sPluginInfo); g_pTooltipNotify = new CTooltipNotify(g_hInstDLL); assert(g_pTooltipNotify!=0); g_hModulesLoaded = HookEvent(ME_SYSTEM_MODULESLOADED, ModulesLoaded); - return 0; } -- cgit v1.2.3