From 9de0202a0b12838d505825413c3cbcce5edabc11 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 6 Mar 2013 22:12:20 +0000 Subject: cleanup of the unnecessary UnhookEvent() calls git-svn-id: http://svn.miranda-ng.org/main/trunk@3909 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Scriver/src/chat/options.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'plugins/Scriver') diff --git a/plugins/Scriver/src/chat/options.cpp b/plugins/Scriver/src/chat/options.cpp index 2f250b799a..84437d2979 100644 --- a/plugins/Scriver/src/chat/options.cpp +++ b/plugins/Scriver/src/chat/options.cpp @@ -28,7 +28,6 @@ extern HBRUSH hListBkgBrush; extern HBRUSH hListSelectedBkgBrush; extern FONTINFO aFonts[OPTIONS_FONTCOUNT]; -HANDLE g_hOptions = NULL; static HWND hPathTip = 0; struct branch_t @@ -882,11 +881,11 @@ void SetIndentSize() int OptionsInit(void) { - LOGFONT lf; - - g_hOptions = HookEvent(ME_OPT_INITIALISE, OptionsInitialize); + HookEvent(ME_OPT_INITIALISE, OptionsInitialize); LoadLogFonts(); + + LOGFONT lf; LoadMsgDlgFont(18, &lf, NULL, TRUE); lstrcpy(lf.lfFaceName, _T("MS Shell Dlg")); lf.lfUnderline = lf.lfItalic = lf.lfStrikeOut = 0; @@ -917,7 +916,6 @@ int OptionsInit(void) int OptionsUnInit(void) { FreeGlobalSettings(); - UnhookEvent(g_hOptions); DeleteObject(hListBkgBrush); DeleteObject(hListSelectedBkgBrush); DeleteObject(g_Settings.NameFont); -- cgit v1.2.3