From a5faef1d1d8c6306132999dc30dfc98de402aa55 Mon Sep 17 00:00:00 2001 From: Valentin Radu Date: Thu, 20 Jan 2022 02:09:07 +0200 Subject: [PATCH] Fixed option to disable Office keys according to #661#discussioncomment-2001798 (the shortcut Ctrl+Alt+Shift+Win is unassigned as well) --- ExplorerPatcher/dllmain.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ExplorerPatcher/dllmain.c b/ExplorerPatcher/dllmain.c index e0b5b23..01d2889 100644 --- a/ExplorerPatcher/dllmain.c +++ b/ExplorerPatcher/dllmain.c @@ -6295,7 +6295,8 @@ BOOL explorer_RegisterHotkeyHook(HWND hWnd, int id, UINT fsModifiers, UINT vk) vk == office_hotkeys[6] || vk == office_hotkeys[7] || vk == office_hotkeys[8] || - vk == office_hotkeys[9])) + vk == office_hotkeys[9] || + !vk)) { SetLastError(ERROR_HOTKEY_ALREADY_REGISTERED); return FALSE;