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/WinterSpeak/src/main.cpp | 10 +++++++--- plugins/WinterSpeak/src/stdafx.h | 4 +--- 2 files changed, 8 insertions(+), 6 deletions(-) (limited to 'plugins/WinterSpeak/src') diff --git a/plugins/WinterSpeak/src/main.cpp b/plugins/WinterSpeak/src/main.cpp index 76164aea13..717fbb5a50 100644 --- a/plugins/WinterSpeak/src/main.cpp +++ b/plugins/WinterSpeak/src/main.cpp @@ -10,7 +10,7 @@ HANDLE g_event_status_change; HANDLE g_event_message_added; HANDLE g_protocol_ack; -PLUGININFOEX pluginInfo={ +PLUGININFOEX pluginInfoEx={ sizeof(PLUGININFOEX), __PLUGIN_NAME, PLUGIN_MAKE_VERSION(__MAJOR_VERSION, __MINOR_VERSION, __RELEASE_NUM, __BUILD_NUM), @@ -23,9 +23,13 @@ PLUGININFOEX pluginInfo={ { 0x81e189dc, 0xc251, 0x45f6, { 0x9e, 0xdf, 0xa0, 0xf3, 0xa0, 0x5c, 0x42, 0x48 } } }; +CMPlugin::CMPlugin() : + PLUGIN("speak_config", pluginInfoEx) +{} + extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD) { - return &pluginInfo; + return &pluginInfoEx; } //----------------------------------------------------------------------------- @@ -103,7 +107,7 @@ int dialogOptionsInitialise(WPARAM wParam, LPARAM) extern "C" __declspec(dllexport) int Load(void) { - mir_getLP(&pluginInfo); + mir_getLP(&pluginInfoEx); if (!g_speak_config) { diff --git a/plugins/WinterSpeak/src/stdafx.h b/plugins/WinterSpeak/src/stdafx.h index 44c88cbd35..8899be7c6e 100644 --- a/plugins/WinterSpeak/src/stdafx.h +++ b/plugins/WinterSpeak/src/stdafx.h @@ -48,7 +48,5 @@ struct CMPlugin : public PLUGIN { - CMPlugin() : - PLUGIN("speak_config") - {} + CMPlugin(); }; -- cgit v1.2.3