diff options
author | George Hazan <ghazan@miranda.im> | 2018-05-23 19:33:42 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-05-23 19:33:49 +0300 |
commit | 91b13500b47a51f3a284d9f409b7b8dac167a06d (patch) | |
tree | fc6d5741eb5861182550535f3d17500bf02ec7ef | |
parent | 959aef1b9a7c70f70d107130bea903a207c02939 (diff) |
fix: calculated array of interfaces is ignored
-rw-r--r-- | plugins/StatusManager/src/main.cpp | 11 |
1 files 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 |