From 6d7648d723c1fa2ee04c60ec657368a3d2516899 Mon Sep 17 00:00:00 2001 From: Whindmar Saksit Date: Thu, 30 May 2024 15:22:29 +0200 Subject: [PATCH] [SHELL32] CDefView::InvokeContextMenuCommand must specify a showcmd (#6966) ZeroMemory causes nShow to be SW_HIDE. This causes shell extensions that propagates the nShow all the way, will start child processes hidden. --- dll/win32/shell32/CDefView.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/dll/win32/shell32/CDefView.cpp b/dll/win32/shell32/CDefView.cpp index 9cd6acb104b..fa5cc407093 100644 --- a/dll/win32/shell32/CDefView.cpp +++ b/dll/win32/shell32/CDefView.cpp @@ -1983,6 +1983,7 @@ HRESULT CDefView::InvokeContextMenuCommand(CComPtr& pCM, LPCSTR lp cmi.cbSize = sizeof(cmi); cmi.hwnd = m_hWnd; cmi.lpVerb = lpVerb; + cmi.nShow = SW_SHOW; if (GetKeyState(VK_SHIFT) < 0) cmi.fMask |= CMIC_MASK_SHIFT_DOWN;