summaryrefslogtreecommitdiff
path: root/plugins/YAPP
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-06-27 13:58:25 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-06-27 13:58:25 +0000
commit81e8caf42867b65677efe2bffaa52ecff7303c3a (patch)
tree846f06ef51787c58205cd87546976bda29556680 /plugins/YAPP
parentd9da7f147fbe91d2e70721de96907ae1d273b591 (diff)
no more pluginLink in load()
git-svn-id: http://svn.miranda-ng.org/main/trunk@652 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/YAPP')
-rw-r--r--plugins/YAPP/common.h1
-rw-r--r--plugins/YAPP/popups2.cpp6
2 files changed, 3 insertions, 4 deletions
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();