From 3e9e96f6718b13c069138fb40f24f065ac03c6b7 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 18 Sep 2017 18:33:09 +0300 Subject: unneeded calls of DestroyServiceFunction() removed --- plugins/IEHistory/src/IEHistory.cpp | 2 -- plugins/IEHistory/src/services.cpp | 10 +--------- plugins/IEHistory/src/services.h | 1 - 3 files changed, 1 insertion(+), 12 deletions(-) (limited to 'plugins/IEHistory/src') diff --git a/plugins/IEHistory/src/IEHistory.cpp b/plugins/IEHistory/src/IEHistory.cpp index 057a3e639c..2697d2309a 100644 --- a/plugins/IEHistory/src/IEHistory.cpp +++ b/plugins/IEHistory/src/IEHistory.cpp @@ -95,8 +95,6 @@ extern "C" int __declspec(dllexport) Load(void) extern "C" int __declspec(dllexport) Unload() { - DestroyServices(); - WindowList_Broadcast(hOpenWindowsList, WM_CLOSE, 0, 0); WindowList_Destroy(hOpenWindowsList); return 0; diff --git a/plugins/IEHistory/src/services.cpp b/plugins/IEHistory/src/services.cpp index a907a4e218..7197f2a4d5 100644 --- a/plugins/IEHistory/src/services.cpp +++ b/plugins/IEHistory/src/services.cpp @@ -21,17 +21,9 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include "stdafx.h" #include "services.h" -HANDLE hShowHistory; - int InitServices() { - hShowHistory = CreateServiceFunction(MS_HISTORY_SHOWCONTACTHISTORY, ShowContactHistoryService); - return 0; -} - -int DestroyServices() -{ - DestroyServiceFunction(hShowHistory); + CreateServiceFunction(MS_HISTORY_SHOWCONTACTHISTORY, ShowContactHistoryService); return 0; } diff --git a/plugins/IEHistory/src/services.h b/plugins/IEHistory/src/services.h index f9d8492236..aa1f0c39cf 100644 --- a/plugins/IEHistory/src/services.h +++ b/plugins/IEHistory/src/services.h @@ -25,7 +25,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include "dlgHandlers.h" int InitServices(); -int DestroyServices(); INT_PTR ShowContactHistoryService(WPARAM wParam, LPARAM lParam); -- cgit v1.2.3