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/YAPP/common.h | 1 - plugins/YAPP/popups2.cpp | 6 +++--- 2 files changed, 3 insertions(+), 4 deletions(-) (limited to 'plugins/YAPP') diff --git a/plugins/YAPP/common.h b/plugins/YAPP/common.h index 51d5b1cd41..9625c55bb3 100644 --- a/plugins/YAPP/common.h +++ b/plugins/YAPP/common.h @@ -60,7 +60,6 @@ #define MODULE "YAPP" extern HMODULE hInst; -extern PLUGINLINK *pluginLink; extern HFONT hFontFirstLine, hFontSecondLine, hFontTime; extern COLORREF colFirstLine, colSecondLine, colBg, colTime, colBorder, colSidebar, colTitleUnderline; diff --git a/plugins/YAPP/popups2.cpp b/plugins/YAPP/popups2.cpp index d57a3ace9b..c4630f8984 100644 --- a/plugins/YAPP/popups2.cpp +++ b/plugins/YAPP/popups2.cpp @@ -43,7 +43,7 @@ PLUGININFOEX pluginInfo={ { 0xefd15f16, 0x7ae4, 0x40d7, { 0xa8, 0xe3, 0xa4, 0x11, 0xed, 0x74, 0x7b, 0xd5 } } // {EFD15F16-7AE4-40d7-A8E3-A411ED747BD5} }; -PLUGINLINK *pluginLink; + extern "C" BOOL APIENTRY DllMain( HMODULE hModule, DWORD ul_reason_for_call, LPVOID lpReserved) @@ -228,8 +228,8 @@ int PreShutdown(WPARAM wParam, LPARAM lParam) { HANDLE hEventPreShutdown, hEventModulesLoaded; -extern "C" int POPUPS2_API Load(PLUGINLINK *link) { - pluginLink = link; +extern "C" int POPUPS2_API Load(void) { + mir_getLP(&pluginInfo); InitMessagePump(); -- cgit v1.2.3