mirror of
https://github.com/reactos/reactos.git
synced 2024-06-30 09:50:07 +00:00
* When clicking on the desktop background, there is no item selected, thus, apidl is null
* Fixes bug 3676 svn path=/trunk/; revision=35540
This commit is contained in:
parent
60ef511bb8
commit
df9f666602
|
@ -1408,12 +1408,12 @@ DoProperties(
|
|||
WCHAR szDrive[MAX_PATH];
|
||||
STRRET strFile;
|
||||
|
||||
if (_ILIsMyComputer(This->dcm.apidl[0]))
|
||||
if (This->dcm.cidl &&_ILIsMyComputer(This->dcm.apidl[0]))
|
||||
{
|
||||
ShellExecuteW(lpcmi->hwnd, L"open", L"rundll32.exe shell32.dll,Control_RunDLL sysdm.cpl", NULL, NULL, SW_SHOWNORMAL);
|
||||
return S_OK;
|
||||
}
|
||||
else if (_ILIsDesktop(This->dcm.apidl[0]))
|
||||
else if (This->dcm.cidl == 0 && _ILIsDesktop(This->dcm.pidlFolder))
|
||||
{
|
||||
ShellExecuteW(lpcmi->hwnd, L"open", L"rundll32.exe shell32.dll,Control_RunDLL desk.cpl", NULL, NULL, SW_SHOWNORMAL);
|
||||
return S_OK;
|
||||
|
|
Loading…
Reference in a new issue