summaryrefslogtreecommitdiff
path: root/plugins/Actman
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-03-18 08:18:13 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-03-18 08:18:13 +0000
commite63908912809cd6aeeeb2d068da562c227cbd3a9 (patch)
treedb3d95b3fc111d31d1a4dc23d8e094990105014f /plugins/Actman
parentd90a9d04b3b6e2beaa31b311fd38b886a46bab72 (diff)
clutch for pascal plugins not to eat memory on thread creation
git-svn-id: http://svn.miranda-ng.org/main/trunk@4085 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Actman')
-rw-r--r--plugins/Actman/actman.dpr8
1 files changed, 5 insertions, 3 deletions
diff --git a/plugins/Actman/actman.dpr b/plugins/Actman/actman.dpr
index caf0319c6a..5428411585 100644
--- a/plugins/Actman/actman.dpr
+++ b/plugins/Actman/actman.dpr
@@ -136,7 +136,7 @@ begin
LoadGroups;
RegisterIcons;
-
+
opthook :=HookEvent(ME_OPT_INITIALISE ,@OnOptInitialise);
hHookShutdown:=HookEvent(ME_SYSTEM_SHUTDOWN{ME_SYSTEM_OKTOEXIT},@PreShutdown);
NotifyEventHooks(hHookChanged,twparam(ACTM_LOADED),0);
@@ -183,7 +183,9 @@ begin
end;
exports
- Load, Unload,
- MirandaPluginInfoEx;
+ Load, Unload, MirandaPluginInfoEx;
+
+initialization
+ DisableThreadLibraryCalls(hInstance);
end.