mirror of
https://github.com/reactos/reactos.git
synced 2024-10-31 20:02:55 +00:00
[SHELL32] Control panel context menu semantic bugfix (#4078)
This commit is contained in:
parent
712f469671
commit
83335d3a81
|
@ -676,9 +676,9 @@ HRESULT WINAPI CCPLItemMenu::QueryContextMenu(
|
|||
UINT idCmdLast,
|
||||
UINT uFlags)
|
||||
{
|
||||
_InsertMenuItemW(hMenu, indexMenu++, TRUE, IDS_OPEN, MFT_STRING, MAKEINTRESOURCEW(IDS_OPEN), MFS_DEFAULT);
|
||||
_InsertMenuItemW(hMenu, indexMenu++, TRUE, idCmdFirst + 1, MFT_SEPARATOR, NULL, MFS_ENABLED);
|
||||
_InsertMenuItemW(hMenu, indexMenu++, TRUE, IDS_CREATELINK, MFT_STRING, MAKEINTRESOURCEW(IDS_CREATELINK), MFS_ENABLED);
|
||||
_InsertMenuItemW(hMenu, indexMenu++, TRUE, idCmdFirst, MFT_STRING, MAKEINTRESOURCEW(IDS_OPEN), MFS_DEFAULT);
|
||||
_InsertMenuItemW(hMenu, indexMenu++, TRUE, IDC_STATIC, MFT_SEPARATOR, NULL, MFS_ENABLED);
|
||||
_InsertMenuItemW(hMenu, indexMenu++, TRUE, idCmdFirst + 1, MFT_STRING, MAKEINTRESOURCEW(IDS_CREATELINK), MFS_ENABLED);
|
||||
|
||||
return MAKE_HRESULT(SEVERITY_SUCCESS, 0, 2);
|
||||
}
|
||||
|
@ -699,7 +699,7 @@ HRESULT WINAPI CCPLItemMenu::InvokeCommand(LPCMINVOKECOMMANDINFO lpcmi)
|
|||
|
||||
TRACE("(%p)->(invcom=%p verb=%p wnd=%p)\n", this, lpcmi, lpcmi->lpVerb, lpcmi->hwnd);
|
||||
|
||||
if (lpcmi->lpVerb == MAKEINTRESOURCEA(IDS_OPEN)) //FIXME
|
||||
if (lpcmi->lpVerb == MAKEINTRESOURCEA(0))
|
||||
{
|
||||
/* Hardcode the command here; Executing a cpl file would be fine but we also need to run things like console.dll */
|
||||
WCHAR wszParams[MAX_PATH];
|
||||
|
@ -711,7 +711,7 @@ HRESULT WINAPI CCPLItemMenu::InvokeCommand(LPCMINVOKECOMMANDINFO lpcmi)
|
|||
/* Note: we pass the applet name to Control_RunDLL to distinguish between multiple applets in one .cpl file */
|
||||
ShellExecuteW(NULL, NULL, wszFile, wszParams, NULL, 0);
|
||||
}
|
||||
else if (lpcmi->lpVerb == MAKEINTRESOURCEA(IDS_CREATELINK)) //FIXME
|
||||
else if (lpcmi->lpVerb == MAKEINTRESOURCEA(1)) //FIXME
|
||||
{
|
||||
CComPtr<IDataObject> pDataObj;
|
||||
LPITEMIDLIST pidl = _ILCreateControlPanel();
|
||||
|
|
Loading…
Reference in a new issue