summaryrefslogtreecommitdiff
path: root/plugins/HistoryPlusPlus
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2020-04-13 20:31:23 +0300
committerGeorge Hazan <ghazan@miranda.im>2020-04-13 20:31:23 +0300
commit7f063463ad52d624be67171c0aca728adb9fa0bc (patch)
treea2289f78f386782f70f5d9df266f1e740c13cb1e /plugins/HistoryPlusPlus
parent92bad3a44a55b2cd08775e71ae75c6a0c16b968c (diff)
fixes #2326 (Выгруженный NewStory не даёт корректно обработать выгружение History++)
Diffstat (limited to 'plugins/HistoryPlusPlus')
-rw-r--r--plugins/HistoryPlusPlus/historypp.dpr5
1 files changed, 2 insertions, 3 deletions
diff --git a/plugins/HistoryPlusPlus/historypp.dpr b/plugins/HistoryPlusPlus/historypp.dpr
index 62dc2d019d..d12fae42a4 100644
--- a/plugins/HistoryPlusPlus/historypp.dpr
+++ b/plugins/HistoryPlusPlus/historypp.dpr
@@ -145,6 +145,7 @@ function Load():Integer; cdecl;
begin
Langpack_Register();
+ RegisterHppLogger;
// Getting langpack codepage for ansi translation
hppCodepage := Langpack_GetDefaultCodePage;
@@ -165,6 +166,7 @@ end;
// unload
function Unload:Integer; cdecl;
begin
+ UnregisterHppLogger;
Result:=0;
// unhook events
@@ -500,7 +502,6 @@ function OnPreshutdown(wParam: WPARAM; lParam: LPARAM): Integer; cdecl;
begin
Result := 0;
NotifyAllForms(HM_MIEV_PRESHUTDOWN,0,0);
- UnregisterHppLogger;
end;
exports
@@ -511,8 +512,6 @@ exports
begin
DisableThreadLibraryCalls(hInstance);
- RegisterHppLogger;
-
PluginInfo.cbSize:= SizeOf(TPLUGININFOEX);
PluginInfo.shortName:= hppShortNameV;
PluginInfo.version:= hppVersion;