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/mTextControl/src/main.cpp | 5 ++--- plugins/mTextControl/src/services.cpp | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) (limited to 'plugins/mTextControl/src') diff --git a/plugins/mTextControl/src/main.cpp b/plugins/mTextControl/src/main.cpp index 2add659e34..17a500ca0e 100644 --- a/plugins/mTextControl/src/main.cpp +++ b/plugins/mTextControl/src/main.cpp @@ -31,7 +31,6 @@ Last change by : $Author: Merlin_de $ #include "headers.h" HINSTANCE hInst = 0; -PLUGINLINK *pluginLink = 0; int hLangpack; HMODULE hMsfteditDll = 0; @@ -66,9 +65,9 @@ extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD miranda return &pluginInfoEx; } -extern "C" __declspec(dllexport) int Load(PLUGINLINK *link) +extern "C" __declspec(dllexport) int Load(void) { - pluginLink = link; + mir_getLP(&pluginInfoEx); //6.0A SDK is missing RichEd20.lib for x64 diff --git a/plugins/mTextControl/src/services.cpp b/plugins/mTextControl/src/services.cpp index 3d2a9c0bee..33a92cb9a1 100644 --- a/plugins/mTextControl/src/services.cpp +++ b/plugins/mTextControl/src/services.cpp @@ -89,7 +89,7 @@ void MText_InitFormatting1(TextObject *text) { // thus enabling devs to fully utilize the mtextcontrol API. // All functions will be exported as miranda services for compatibility. // -// the interface is populated during the Load(PLUGINLINK *link) handler, so you can assume it is ready when Miranda +// the interface is populated during the Load(void) handler, so you can assume it is ready when Miranda // throw the ME_SYSTEM_MODULESLOADED event and you can generate a warning in your ModulesLoaded() when // it depends on the mtextcontrol interface and the mtextcontrol plugin is missing. // -- cgit v1.2.3