[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.
This commit is contained in:
Whindmar Saksit 2024-05-30 15:22:29 +02:00 committed by GitHub
parent dc0ed6de1e
commit 6d7648d723
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1983,6 +1983,7 @@ HRESULT CDefView::InvokeContextMenuCommand(CComPtr<IContextMenu>& 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;