Browse Source

Fixed a bug that could make the Win+Alt+D shortcut to stop working unexpectedly

pull/886/head
Valentin Radu 4 years ago
parent
commit
8a45ffd523
  1. 3
      ExplorerPatcher/dllmain.c

3
ExplorerPatcher/dllmain.c

@ -1590,8 +1590,11 @@ INT64 Shell_TrayWndSubclassProc(
) )
{ {
if (uMsg == WM_NCDESTROY) if (uMsg == WM_NCDESTROY)
{
if (bIsPrimaryTaskbar)
{ {
UnregisterHotKey(hWnd, 'VNEP'); UnregisterHotKey(hWnd, 'VNEP');
}
RemoveWindowSubclass(hWnd, Shell_TrayWndSubclassProc, Shell_TrayWndSubclassProc); RemoveWindowSubclass(hWnd, Shell_TrayWndSubclassProc, Shell_TrayWndSubclassProc);
} }
else if (!bIsPrimaryTaskbar && uMsg == WM_CONTEXTMENU) else if (!bIsPrimaryTaskbar && uMsg == WM_CONTEXTMENU)

Loading…
Cancel
Save