From 6fad3235de6bec045fec19a7265e19e880ac84e2 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 30 Jul 2017 17:30:39 +0300 Subject: Hotkeys: code cleaning --- plugins/Actman/ua/i_uaplaces.inc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'plugins/Actman/ua') diff --git a/plugins/Actman/ua/i_uaplaces.inc b/plugins/Actman/ua/i_uaplaces.inc index 974fef9ea5..e885088f8d 100644 --- a/plugins/Actman/ua/i_uaplaces.inc +++ b/plugins/Actman/ua/i_uaplaces.inc @@ -213,7 +213,6 @@ begin if (ActionItem.flags and UAF_HKREGGED)=0 then begin FillChar(hkd,SizeOf(hkd),0); - hkd.cbSize := SizeOf(hkd); // HOTKEYDESC_SIZE_V1 for pre-0.9 hkd.dwFlags := HKD_UNICODE; // since 0.9 only hkd.pszName := ActionItem.szNameID; hkd.pszDescription.w:= ActionItem.szActDescr; @@ -232,7 +231,7 @@ procedure DeleteCoreHotkey(var ActionItem:tMyActionItem); begin if ((ActionItem.flags and UAF_HKREGGED)<>0) then begin - CallService(MS_HOTKEY_UNREGISTER,0,LParam(ActionItem.szNameID)); + Hotkey_Unregister(ActionItem.szNameID); ActionItem.flags:=ActionItem.flags and not UAF_HKREGGED; end; end; -- cgit v1.2.3