summaryrefslogtreecommitdiff
path: root/plugins/ModernOpt/src/main.cpp
diff options
context:
space:
mode:
authorTobias Weimer <wishmaster51@googlemail.com>2013-02-10 20:15:00 +0000
committerTobias Weimer <wishmaster51@googlemail.com>2013-02-10 20:15:00 +0000
commit8b3120de336f515ffd715c7939b4dc63770c32bd (patch)
treee9d000a4755130f4dc738c6eea132e4603e19227 /plugins/ModernOpt/src/main.cpp
parent5feac927bfb6db11a138b6ce773b8704396c569c (diff)
fixed crash on unloading plugin (fixes #47)
git-svn-id: http://svn.miranda-ng.org/main/trunk@3543 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/ModernOpt/src/main.cpp')
-rw-r--r--plugins/ModernOpt/src/main.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/plugins/ModernOpt/src/main.cpp b/plugins/ModernOpt/src/main.cpp
index 758c117e3d..4177a82724 100644
--- a/plugins/ModernOpt/src/main.cpp
+++ b/plugins/ModernOpt/src/main.cpp
@@ -26,7 +26,7 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL,DWORD fdwReason,LPVOID lpvReserved)
/////////////////////////////////////////////////////////////////////////////////////////
// MirandaPluginInfoEx - returns an information about a plugin
-extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD mirandaVersion)
+extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD)
{
return &pluginInfoEx;
}
@@ -34,7 +34,7 @@ extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD miranda
/////////////////////////////////////////////////////////////////////////////////////////
// Performs a primary set of actions upon plugin loading
-int LoadModernOptsModule();
+void LoadModernOptsModule();
extern "C" int __declspec(dllexport) Load(void)
{
@@ -48,7 +48,10 @@ extern "C" int __declspec(dllexport) Load(void)
/////////////////////////////////////////////////////////////////////////////////////////
// Unload a plugin
+void UnloadModernOptsModule();
+
extern "C" int __declspec(dllexport) Unload(void)
{
+ UnloadModernOptsModule();
return 0;
}