From 8a74e7495ce5ad39de4f5c25121a84d35df90c36 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 20 May 2018 15:08:48 +0300 Subject: CMPlugin to receive a reference to PLUGININFOEX --- plugins/Scriver/src/srmm.cpp | 10 +++++++--- plugins/Scriver/src/stdafx.h | 4 +--- 2 files changed, 8 insertions(+), 6 deletions(-) (limited to 'plugins/Scriver/src') diff --git a/plugins/Scriver/src/srmm.cpp b/plugins/Scriver/src/srmm.cpp index 148f419de6..ee80705754 100644 --- a/plugins/Scriver/src/srmm.cpp +++ b/plugins/Scriver/src/srmm.cpp @@ -34,7 +34,7 @@ ITaskbarList3 *pTaskbarInterface; ///////////////////////////////////////////////////////////////////////////////////////// -PLUGININFOEX pluginInfo = { +PLUGININFOEX pluginInfoEx = { sizeof(PLUGININFOEX), __PLUGIN_NAME, PLUGIN_MAKE_VERSION(__MAJOR_VERSION, __MINOR_VERSION, __RELEASE_NUM, __BUILD_NUM), @@ -47,9 +47,13 @@ PLUGININFOEX pluginInfo = { { 0x84636f78, 0x2057, 0x4302, { 0x8a, 0x65, 0x23, 0xa1, 0x6d, 0x46, 0x84, 0x4c } } }; +CMPlugin::CMPlugin() : + PLUGIN(SRMM_MODULE, pluginInfoEx) +{} + extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD) { - return &pluginInfo; + return &pluginInfoEx; } ///////////////////////////////////////////////////////////////////////////////////////// @@ -61,7 +65,7 @@ extern "C" __declspec(dllexport) const MUUID MirandaInterfaces[] = { MIID_SRMM, extern "C" __declspec(dllexport) int Load(void) { // set the memory manager - mir_getLP(&pluginInfo); + mir_getLP(&pluginInfoEx); pcli = Clist_GetInterface(); if (IsWinVer7Plus()) diff --git a/plugins/Scriver/src/stdafx.h b/plugins/Scriver/src/stdafx.h index b300934d4f..7624a32ac3 100644 --- a/plugins/Scriver/src/stdafx.h +++ b/plugins/Scriver/src/stdafx.h @@ -118,9 +118,7 @@ int StatusIconPressed(WPARAM wParam, LPARAM lParam); struct CMPlugin : public PLUGIN { - CMPlugin() : - PLUGIN(SRMM_MODULE) - {} + CMPlugin(); }; extern GlobalMessageData g_dat; -- cgit v1.2.3