From 91b13500b47a51f3a284d9f409b7b8dac167a06d Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 23 May 2018 19:33:42 +0300 Subject: fix: calculated array of interfaces is ignored --- plugins/StatusManager/src/main.cpp | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/plugins/StatusManager/src/main.cpp b/plugins/StatusManager/src/main.cpp index f4aa5e4fdb..d5f1aa39a5 100644 --- a/plugins/StatusManager/src/main.cpp +++ b/plugins/StatusManager/src/main.cpp @@ -45,17 +45,14 @@ CMPlugin::CMPlugin() : ///////////////////////////////////////////////////////////////////////////////////////// // interfaces -MUUID Interfaces[2] = {0}; -MUUID miidAutoAway = MIID_AUTOAWAY; +static MUUID Interfaces[2] = { MIID_LAST, MIID_LAST }; -MUUID* GetInterfaces(void) +extern "C" __declspec(dllexport) MUUID* MirandaPluginInterfaces(void) { if (g_AAAEnabled) - Interfaces[0] = miidAutoAway; + Interfaces[0] = MIID_AUTOAWAY; return Interfaces; -}; - -extern "C" __declspec(dllexport) MUUID* MirandaInterfaces = GetInterfaces(); +} ///////////////////////////////////////////////////////////////////////////////////////// // plugin's entry point -- cgit v1.2.3