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/ChangeKeyboardLayout/src/hook_events.cpp | 6 +++--- plugins/ChangeKeyboardLayout/src/stdafx.h | 2 -- 2 files changed, 3 insertions(+), 5 deletions(-) (limited to 'plugins/ChangeKeyboardLayout/src') diff --git a/plugins/ChangeKeyboardLayout/src/hook_events.cpp b/plugins/ChangeKeyboardLayout/src/hook_events.cpp index 6f1451a5bb..f281d863b4 100644 --- a/plugins/ChangeKeyboardLayout/src/hook_events.cpp +++ b/plugins/ChangeKeyboardLayout/src/hook_events.cpp @@ -128,9 +128,9 @@ int ModulesLoaded(WPARAM, LPARAM) // Хук на нажатие клавиши kbHook_All = SetWindowsHookEx(WH_KEYBOARD, (HOOKPROC)Keyboard_Hook, NULL, GetCurrentThreadId()); - hChangeLayout = CreateServiceFunction(MS_CKL_CHANGELAYOUT, APIChangeLayout); - hGetLayoutOfText = CreateServiceFunction(MS_CKL_GETLAYOUTOFTEXT, APIGetLayoutOfText); - hChangeTextLayout = CreateServiceFunction(MS_CKL_CHANGETEXTLAYOUT, APIChangeTextLayout); + CreateServiceFunction(MS_CKL_CHANGELAYOUT, APIChangeLayout); + CreateServiceFunction(MS_CKL_GETLAYOUTOFTEXT, APIGetLayoutOfText); + CreateServiceFunction(MS_CKL_CHANGETEXTLAYOUT, APIChangeTextLayout); RegPopupActions(); diff --git a/plugins/ChangeKeyboardLayout/src/stdafx.h b/plugins/ChangeKeyboardLayout/src/stdafx.h index b1a3bac5f5..05f8314376 100644 --- a/plugins/ChangeKeyboardLayout/src/stdafx.h +++ b/plugins/ChangeKeyboardLayout/src/stdafx.h @@ -90,8 +90,6 @@ typedef struct extern HINSTANCE hInst; -extern HANDLE hChangeLayout, hGetLayoutOfText, hChangeTextLayout; - extern HICON hPopupIcon, hCopyIcon; extern LPCTSTR ptszKeybEng; -- cgit v1.2.3