From 8a45ffd5231626f7e27d8025bdd18626771c9041 Mon Sep 17 00:00:00 2001 From: Valentin Radu Date: Tue, 4 Jan 2022 02:19:37 +0200 Subject: [PATCH] Fixed a bug that could make the Win+Alt+D shortcut to stop working unexpectedly --- ExplorerPatcher/dllmain.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ExplorerPatcher/dllmain.c b/ExplorerPatcher/dllmain.c index ecf56c5..2d6a369 100644 --- a/ExplorerPatcher/dllmain.c +++ b/ExplorerPatcher/dllmain.c @@ -1591,7 +1591,10 @@ INT64 Shell_TrayWndSubclassProc( { if (uMsg == WM_NCDESTROY) { - UnregisterHotKey(hWnd, 'VNEP'); + if (bIsPrimaryTaskbar) + { + UnregisterHotKey(hWnd, 'VNEP'); + } RemoveWindowSubclass(hWnd, Shell_TrayWndSubclassProc, Shell_TrayWndSubclassProc); } else if (!bIsPrimaryTaskbar && uMsg == WM_CONTEXTMENU)