From 8b3120de336f515ffd715c7939b4dc63770c32bd Mon Sep 17 00:00:00 2001 From: Tobias Weimer Date: Sun, 10 Feb 2013 20:15:00 +0000 Subject: fixed crash on unloading plugin (fixes #47) git-svn-id: http://svn.miranda-ng.org/main/trunk@3543 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/ModernOpt/src/main.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'plugins/ModernOpt/src/main.cpp') 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; } -- cgit v1.2.3