From 25fd1ebd9a1d167146068ab3556e105ce70f68da Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 25 May 2018 12:01:19 +0300 Subject: fix for a problem with StatusManager loading --- plugins/StatusManager/src/main.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'plugins/StatusManager/src') diff --git a/plugins/StatusManager/src/main.cpp b/plugins/StatusManager/src/main.cpp index 7bf1f1f69a..9c2396e905 100644 --- a/plugins/StatusManager/src/main.cpp +++ b/plugins/StatusManager/src/main.cpp @@ -44,14 +44,17 @@ CMPlugin::CMPlugin() : ///////////////////////////////////////////////////////////////////////////////////////// // interfaces -static MUUID Interfaces[2] = { MIID_LAST, MIID_LAST }; +MUUID Interfaces[2] = {0}; +MUUID miidAutoAway = MIID_AUTOAWAY; -extern "C" __declspec(dllexport) MUUID* MirandaPluginInterfaces(void) +MUUID* GetInterfaces(void) { if (g_AAAEnabled) - Interfaces[0] = MIID_AUTOAWAY; + Interfaces[0] = miidAutoAway; return Interfaces; -} +}; + +extern "C" __declspec(dllexport) MUUID* MirandaInterfaces = GetInterfaces(); ///////////////////////////////////////////////////////////////////////////////////////// // plugin's entry point -- cgit v1.2.3