summaryrefslogtreecommitdiff
path: root/plugins/UserInfoEx
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/UserInfoEx')
-rw-r--r--plugins/UserInfoEx/src/init.cpp4
-rw-r--r--plugins/UserInfoEx/src/stdafx.h3
2 files changed, 5 insertions, 2 deletions
diff --git a/plugins/UserInfoEx/src/init.cpp b/plugins/UserInfoEx/src/init.cpp
index ce0260655c..3203cc87a6 100644
--- a/plugins/UserInfoEx/src/init.cpp
+++ b/plugins/UserInfoEx/src/init.cpp
@@ -138,7 +138,7 @@ extern "C" __declspec(dllexport) const MUUID MirandaInterfaces[] = {
*
* @return 0
**/
-extern "C" int __declspec(dllexport) Unload(void)
+int CMPlugin::Unload()
{
FreeLibrary(hDwmApi);
return 0;
@@ -149,7 +149,7 @@ extern "C" int __declspec(dllexport) Unload(void)
*
* @return 0
**/
-extern "C" int __declspec(dllexport) Load(void)
+int CMPlugin::Load()
{
// init common controls
INITCOMMONCONTROLSEX ccEx;
diff --git a/plugins/UserInfoEx/src/stdafx.h b/plugins/UserInfoEx/src/stdafx.h
index 1b2fbe41cc..76d67779b0 100644
--- a/plugins/UserInfoEx/src/stdafx.h
+++ b/plugins/UserInfoEx/src/stdafx.h
@@ -161,6 +161,9 @@ unsigned int hashSettingW_M2(const char * key); //new Murma2 hash
struct CMPlugin : public PLUGIN<CMPlugin>
{
CMPlugin();
+
+ int Load() override;
+ int Unload() override;
};
typedef struct _MGLOBAL