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/Db3x_mmap/src/init.cpp | 13 ++++++++----- plugins/Db3x_mmap/src/stdafx.h | 4 +--- 2 files changed, 9 insertions(+), 8 deletions(-) (limited to 'plugins/Db3x_mmap/src') diff --git a/plugins/Db3x_mmap/src/init.cpp b/plugins/Db3x_mmap/src/init.cpp index b7a2652868..d284996ff0 100644 --- a/plugins/Db3x_mmap/src/init.cpp +++ b/plugins/Db3x_mmap/src/init.cpp @@ -34,8 +34,7 @@ extern "C" __declspec(dllexport) const MUUID MirandaInterfaces[] = { MIID_DATABA ///////////////////////////////////////////////////////////////////////////////////////// -static PLUGININFOEX pluginInfo = -{ +static PLUGININFOEX pluginInfoEx = { sizeof(PLUGININFOEX), __PLUGIN_NAME, PLUGIN_MAKE_VERSION(__MAJOR_VERSION, __MINOR_VERSION, __RELEASE_NUM, __BUILD_NUM), @@ -45,12 +44,16 @@ static PLUGININFOEX pluginInfo = __AUTHORWEB, UNICODE_AWARE | STATIC_PLUGIN, //{F7A6B27C-9D9C-4A42-BE86-A448AE109161} - { 0xf7a6b27c, 0x9d9c, 0x4a42, { 0xbe, 0x86, 0xa4, 0x48, 0xae, 0x10, 0x91, 0x61 } } + {0xf7a6b27c, 0x9d9c, 0x4a42, {0xbe, 0x86, 0xa4, 0x48, 0xae, 0x10, 0x91, 0x61}} }; +CMPlugin::CMPlugin() : + PLUGIN(nullptr, pluginInfoEx) +{} + extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD) { - return &pluginInfo; + return &pluginInfoEx; } ///////////////////////////////////////////////////////////////////////////////////////// @@ -79,7 +82,7 @@ static int grokHeader(const wchar_t *profile) static MDatabaseCommon* LoadDatabase(const wchar_t *profile, BOOL bReadOnly) { // set the memory, lists & UTF8 manager - mir_getLP(&pluginInfo); + mir_getLP(&pluginInfoEx); //////////////////////////////////////////////////////////////////////////////////////// // if not read only, convert the old profile to libmdbx diff --git a/plugins/Db3x_mmap/src/stdafx.h b/plugins/Db3x_mmap/src/stdafx.h index 012e9bb510..266918c3cf 100644 --- a/plugins/Db3x_mmap/src/stdafx.h +++ b/plugins/Db3x_mmap/src/stdafx.h @@ -55,9 +55,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. struct CMPlugin : public PLUGIN { - CMPlugin() : - PLUGIN(nullptr) - {} + CMPlugin(); }; extern LIST g_Dbs; -- cgit v1.2.3