summaryrefslogtreecommitdiff
path: root/plugins/Weather/src
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Weather/src')
-rw-r--r--plugins/Weather/src/stdafx.h3
-rw-r--r--plugins/Weather/src/weather.cpp4
2 files changed, 5 insertions, 2 deletions
diff --git a/plugins/Weather/src/stdafx.h b/plugins/Weather/src/stdafx.h
index c197c848cf..a33b89e6d3 100644
--- a/plugins/Weather/src/stdafx.h
+++ b/plugins/Weather/src/stdafx.h
@@ -522,5 +522,8 @@ void ReleaseIconEx(HICON hIcon);
struct CMPlugin : public PLUGIN<CMPlugin>
{
CMPlugin();
+
+ int Load() override;
+ int Unload() override;
};
diff --git a/plugins/Weather/src/weather.cpp b/plugins/Weather/src/weather.cpp
index ae7244b902..30907b648f 100644
--- a/plugins/Weather/src/weather.cpp
+++ b/plugins/Weather/src/weather.cpp
@@ -154,7 +154,7 @@ void InitVar()
ModuleLoaded = FALSE;
}
-extern "C" int __declspec(dllexport) Load(void)
+int CMPlugin::Load()
{
// initialize global variables
InitVar();
@@ -211,7 +211,7 @@ extern "C" int __declspec(dllexport) Load(void)
/////////////////////////////////////////////////////////////////////////////////////////
// unload function
-extern "C" int __declspec(dllexport) Unload(void)
+int CMPlugin::Unload()
{
DestroyMwin();
DestroyWindow(hPopupWindow);