mirror of
https://github.com/reactos/reactos.git
synced 2024-12-29 10:35:28 +00:00
[SHELL32] Fix Desktop Properties menu item action (#1833)
1. Right Click the Desktop. 2. Choose "Properties" menu item. 3. "Properties for Display" dialog must be shown. The parameters of ShellExecuteW were wrong. The execution parameters must be separated from the file parameter. CORE-16299
This commit is contained in:
parent
18a9993d69
commit
944aba1fcc
1 changed files with 4 additions and 1 deletions
|
@ -845,8 +845,11 @@ HRESULT WINAPI CDesktopFolder::CallBack(IShellFolder *psf, HWND hwndOwner, IData
|
||||||
{
|
{
|
||||||
if (uMsg == DFM_INVOKECOMMAND && wParam == 0)
|
if (uMsg == DFM_INVOKECOMMAND && wParam == 0)
|
||||||
{
|
{
|
||||||
if (32 >= (UINT_PTR)ShellExecuteW(hwndOwner, L"open", L"rundll32.exe shell32.dll,Control_RunDLL desk.cpl", NULL, NULL, SW_SHOWNORMAL))
|
if (32 >= (UINT_PTR)ShellExecuteW(hwndOwner, L"open", L"rundll32.exe",
|
||||||
|
L"shell32.dll,Control_RunDLL desk.cpl", NULL, SW_SHOWNORMAL))
|
||||||
|
{
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
|
}
|
||||||
return S_OK;
|
return S_OK;
|
||||||
}
|
}
|
||||||
else if (uMsg == DFM_MERGECONTEXTMENU)
|
else if (uMsg == DFM_MERGECONTEXTMENU)
|
||||||
|
|
Loading…
Reference in a new issue