summaryrefslogtreecommitdiff
path: root/plugins/XSoundNotify/src
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/XSoundNotify/src')
-rw-r--r--plugins/XSoundNotify/src/stdafx.h3
-rw-r--r--plugins/XSoundNotify/src/xsn_main.cpp4
2 files changed, 5 insertions, 2 deletions
diff --git a/plugins/XSoundNotify/src/stdafx.h b/plugins/XSoundNotify/src/stdafx.h
index 70c1a6b9d6..7a5c1527ac 100644
--- a/plugins/XSoundNotify/src/stdafx.h
+++ b/plugins/XSoundNotify/src/stdafx.h
@@ -25,6 +25,9 @@
struct CMPlugin : public PLUGIN<CMPlugin>
{
CMPlugin();
+
+ int Load() override;
+ int Unload() override;
};
struct XSN_Data
diff --git a/plugins/XSoundNotify/src/xsn_main.cpp b/plugins/XSoundNotify/src/xsn_main.cpp
index 5e766f0bb7..d8713148ce 100644
--- a/plugins/XSoundNotify/src/xsn_main.cpp
+++ b/plugins/XSoundNotify/src/xsn_main.cpp
@@ -231,7 +231,7 @@ static int OnPreShutdown(WPARAM, LPARAM)
return 0;
}
-extern "C" int __declspec(dllexport) Load()
+int CMPlugin::Load()
{
CreateServiceFunction("XSoundNotify/ContactMenuCommand", ShowDialog);
@@ -250,7 +250,7 @@ extern "C" int __declspec(dllexport) Load()
/////////////////////////////////////////////////////////////////////////////////////////
-extern "C" int __declspec(dllexport) Unload(void)
+int CMPlugin::Unload()
{
WindowList_Destroy(hChangeSoundDlgList);
return 0;