Changeset 2215
- Timestamp:
- 6/27/2010 1:07:19 PM (20 months ago)
- File:
-
- 1 edited
-
branches/eraser6/6.0/ShellExt/CtxMenu.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/eraser6/6.0/ShellExt/CtxMenu.cpp
r1719 r2215 219 219 } 220 220 221 //Check if the selected files is only one item long and if that item is the 222 //Start button (for Windows XP) 223 if (SelectedFiles.size() == 1) 224 { 225 wchar_t startMenuPath[MAX_PATH]; 226 if (SUCCEEDED(SHGetFolderPath(NULL, CSIDL_STARTMENU, NULL, 227 SHGFP_TYPE_CURRENT, startMenuPath))) 228 { 229 if (SelectedFiles.front() == startMenuPath) 230 //Yes, it is. Don't display the Eraser context menu for this. 231 return E_INVALIDARG; 232 } 233 } 234 221 235 //Clean up. 222 236 GlobalUnlock(stg.hGlobal);
Note: See TracChangeset
for help on using the changeset viewer.
