From ad9395ce6d3f028c6353dfe1078b976bb37ad9ab Mon Sep 17 00:00:00 2001 From: Valentin Radu Date: Sat, 11 Sep 2021 20:16:53 +0300 Subject: [PATCH] Win+X and Safe to Remove menu entries can be activated by right click --- ExplorerPatcher/dllmain.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ExplorerPatcher/dllmain.c b/ExplorerPatcher/dllmain.c index fd2d9bf..f20b481 100644 --- a/ExplorerPatcher/dllmain.c +++ b/ExplorerPatcher/dllmain.c @@ -1150,7 +1150,7 @@ BOOL TrackPopupMenuHook( ); BOOL b = TrackPopupMenuFunc( hMenu, - uFlags, + uFlags | TPM_RIGHTBUTTON, x, y, nReserved, @@ -1254,7 +1254,7 @@ DWORD ShowLauncherTipContextMenu( BOOL res = TrackPopupMenu( *((HMENU*)((char*)params->_this + 0xe8)), - TPM_RETURNCMD, + TPM_RETURNCMD | TPM_RIGHTBUTTON, params->point.x, params->point.y, 0,