Author: janderwald
Date: Fri Aug 22 15:07:14 2008
New Revision: 35540
URL:
http://svn.reactos.org/svn/reactos?rev=35540&view=rev
Log:
* When clicking on the desktop background, there is no item selected, thus, apidl is null
* Fixes bug 3676
Modified:
trunk/reactos/dll/win32/shell32/shv_def_cmenu.c
Modified: trunk/reactos/dll/win32/shell32/shv_def_cmenu.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/shell32/shv_def_…
==============================================================================
--- trunk/reactos/dll/win32/shell32/shv_def_cmenu.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/shell32/shv_def_cmenu.c [iso-8859-1] Fri Aug 22 15:07:14 2008
@@ -1408,12 +1408,12 @@
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;