diff options
author | George Hazan <ghazan@miranda.im> | 2018-05-25 12:01:19 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-05-25 12:01:19 +0300 |
commit | 25fd1ebd9a1d167146068ab3556e105ce70f68da (patch) | |
tree | 9ead778715ab4a1b85d522d631858c925d3423c7 | |
parent | 176e52e14fd0358a7f26ca8d7b0205244dfde2e7 (diff) |
fix for a problem with StatusManager loading
-rw-r--r-- | plugins/StatusManager/src/main.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
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 |