summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--iax/dllmain.cpp9
-rw-r--r--iax/private.h2
2 files changed, 8 insertions, 3 deletions
diff --git a/iax/dllmain.cpp b/iax/dllmain.cpp
index fdeee19..86866c3 100644
--- a/iax/dllmain.cpp
+++ b/iax/dllmain.cpp
@@ -70,7 +70,12 @@ int ModulesLoaded(WPARAM wParam, LPARAM lParam) {
return 0;
}
-HANDLE hModulesLoaded;
+int PreShutdown(WPARAM wParam, LPARAM lParam) {
+ DeinitIAXInterface();
+ return 0;
+}
+
+HANDLE hModulesLoaded, hPreShutdown;
extern "C" __declspec (dllexport) int __cdecl Load(PLUGINLINK *link) {
pluginLink=link;
@@ -114,6 +119,7 @@ extern "C" __declspec (dllexport) int __cdecl Load(PLUGINLINK *link) {
// hook modules loaded
hModulesLoaded = HookEvent(ME_SYSTEM_MODULESLOADED, ModulesLoaded);
+ hPreShutdown = HookEvent(ME_SYSTEM_PRESHUTDOWN, PreShutdown);
return 0;
}
@@ -122,6 +128,5 @@ extern "C" __declspec (dllexport) int __cdecl Unload(void) {
DeinitServices();
DeinitMenu();
DeinitIcons();
- DeinitIAXInterface();
return 0;
}
diff --git a/iax/private.h b/iax/private.h
index 2a1a603..84ad034 100644
--- a/iax/private.h
+++ b/iax/private.h
@@ -4,7 +4,7 @@
/* VERSION DEFINITIONS */
#define VER_MAJOR 0
#define VER_MINOR 0
-#define VER_RELEASE 2
+#define VER_RELEASE 3
#define VER_BUILD 0
#define __STRINGIZE(x) #x