diff options
author | George Hazan <george.hazan@gmail.com> | 2013-03-06 22:12:20 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-03-06 22:12:20 +0000 |
commit | 9de0202a0b12838d505825413c3cbcce5edabc11 (patch) | |
tree | 6f1f707f3e17c19e5cd08745e76c5299f9ba827b /plugins/TabSRMM/src/chat | |
parent | 4e3088029101cc1e9bbc46984910a47bc0530e8f (diff) |
cleanup of the unnecessary UnhookEvent() calls
git-svn-id: http://svn.miranda-ng.org/main/trunk@3909 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TabSRMM/src/chat')
-rw-r--r-- | plugins/TabSRMM/src/chat/options.cpp | 4 | ||||
-rw-r--r-- | plugins/TabSRMM/src/chat/services.cpp | 4 |
2 files changed, 1 insertions, 7 deletions
diff --git a/plugins/TabSRMM/src/chat/options.cpp b/plugins/TabSRMM/src/chat/options.cpp index b1fa380e26..5057f53ab7 100644 --- a/plugins/TabSRMM/src/chat/options.cpp +++ b/plugins/TabSRMM/src/chat/options.cpp @@ -45,9 +45,6 @@ extern HMODULE g_hIconDLL; extern HIMAGELIST CreateStateImageList();
-HANDLE g_hOptions = NULL;
-
-
#define FONTF_BOLD 1
#define FONTF_ITALIC 2
@@ -1418,7 +1415,6 @@ int OptionsInit(void) int OptionsUnInit(void)
{
FreeGlobalSettings();
- UnhookEvent(g_hOptions);
DeleteObject(hListBkgBrush);
DeleteObject(g_Settings.NameFont);
return 0;
diff --git a/plugins/TabSRMM/src/chat/services.cpp b/plugins/TabSRMM/src/chat/services.cpp index 427dc7de89..9219d730f2 100644 --- a/plugins/TabSRMM/src/chat/services.cpp +++ b/plugins/TabSRMM/src/chat/services.cpp @@ -46,7 +46,6 @@ CRITICAL_SECTION cs; HANDLE hSendEvent;
HANDLE hBuildMenuEvent;
HANDLE hJoinMenuItem, hLeaveMenuItem;
-HANDLE g_hHookPrebuildMenu;
static HANDLE
hServiceRegister = NULL,
@@ -819,12 +818,11 @@ static INT_PTR Service_GetAddEventPtr(WPARAM wParam, LPARAM lParam) void HookEvents(void)
{
InitializeCriticalSection(&cs);
- g_hHookPrebuildMenu = HookEvent(ME_CLIST_PREBUILDCONTACTMENU, CList_PrebuildContactMenu); // MIRANDAHOOK should return INT_PTR too
+ HookEvent(ME_CLIST_PREBUILDCONTACTMENU, CList_PrebuildContactMenu); // MIRANDAHOOK should return INT_PTR too
}
void UnhookEvents(void)
{
- UnhookEvent(g_hHookPrebuildMenu);
DeleteCriticalSection(&cs);
}
|