From 1a0dc87d73d7a71028ac335be0d67433f410bab1 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 2 Aug 2022 22:31:54 +0300 Subject: code to prevent UserInfo hooks from being destroyed --- plugins/UserInfoEx/src/dlg_propsheet.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/UserInfoEx/src') diff --git a/plugins/UserInfoEx/src/dlg_propsheet.cpp b/plugins/UserInfoEx/src/dlg_propsheet.cpp index c93136e8fb..d541b37281 100644 --- a/plugins/UserInfoEx/src/dlg_propsheet.cpp +++ b/plugins/UserInfoEx/src/dlg_propsheet.cpp @@ -1337,6 +1337,7 @@ static INT_PTR CALLBACK DlgProc(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lPar void DlgContactInfoLoadModule() { + // this event is already created inside the core, don't destroy it g_hDetailsInitEvent = CreateHookableEvent(ME_USERINFO_INITIALISE); CreateServiceFunction(MS_USERINFO_SHOWDIALOG, ShowDialog); @@ -1358,5 +1359,4 @@ void DlgContactInfoLoadModule() void DlgContactInfoUnLoadModule() { WindowList_Destroy(g_hWindowList); - DestroyHookableEvent(g_hDetailsInitEvent); } -- cgit v1.2.3