mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
[SHELL32] Use IS_INTRESOURCE in CCopyToMenu/CMoveToMenu::InvokeCommand
CORE-18426
This commit is contained in:
parent
855008d97b
commit
bc70af4c13
3 changed files with 5 additions and 2 deletions
|
@ -319,7 +319,7 @@ CCopyToMenu::InvokeCommand(LPCMINVOKECOMMANDINFO lpici)
|
|||
HRESULT hr = E_FAIL;
|
||||
TRACE("CCopyToMenu::InvokeCommand(%p)\n", lpici);
|
||||
|
||||
if (HIWORD(lpici->lpVerb) == 0)
|
||||
if (IS_INTRESOURCE(lpici->lpVerb))
|
||||
{
|
||||
if (m_idCmdFirst + LOWORD(lpici->lpVerb) == m_idCmdCopyTo)
|
||||
{
|
||||
|
|
|
@ -1522,6 +1522,9 @@ HRESULT CDefView::InvokeContextMenuCommand(CComPtr<IContextMenu> &pCM, UINT uCom
|
|||
cmi.lpVerb = MAKEINTRESOURCEA(uCommand);
|
||||
cmi.hwnd = m_hWnd;
|
||||
|
||||
if (uCommand==FCIDM_SHVIEW_COPYTO) cmi.lpVerb = "copyto";
|
||||
if (uCommand==FCIDM_SHVIEW_MOVETO) cmi.lpVerb = "moveto";
|
||||
|
||||
if (GetKeyState(VK_SHIFT) & 0x8000)
|
||||
cmi.fMask |= CMIC_MASK_SHIFT_DOWN;
|
||||
|
||||
|
|
|
@ -323,7 +323,7 @@ CMoveToMenu::InvokeCommand(LPCMINVOKECOMMANDINFO lpici)
|
|||
HRESULT hr = E_FAIL;
|
||||
TRACE("CMoveToMenu::InvokeCommand(%p)\n", lpici);
|
||||
|
||||
if (HIWORD(lpici->lpVerb) == 0)
|
||||
if (IS_INTRESOURCE(lpici->lpVerb))
|
||||
{
|
||||
if (m_idCmdFirst + LOWORD(lpici->lpVerb) == m_idCmdMoveTo)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue