Changeset 977 in vbox for trunk/src/VBox/Main
- Timestamp:
- Feb 19, 2007 12:40:51 PM (18 years ago)
- svn:sync-xref-src-repo-rev:
- 18752
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/SharedFolderImpl.cpp
r1 r977 133 133 const BSTR aName, const BSTR aHostPath) 134 134 { 135 LogFlowMember (("SharedFolder::protectedInit(): aName={%ls}, aHostPath={%ls}\n", 136 aName, aHostPath)); 135 LogFlowThisFunc (("aName={%ls}, aHostPath={%ls}\n", aName, aHostPath)); 137 136 138 137 ComAssertRet (aParent && aName && aHostPath, E_INVALIDARG); … … 141 140 size_t hostPathLen = hostPath.length(); 142 141 143 /* Remove the trailng path unless it's a DOS-likeroot directory142 /* Remove the trailng slash unless it's a root directory 144 143 * (otherwise the comparison with the RTPathAbs() result will fail at least 145 144 * on Linux). Note that this isn't really necessary for the shared folder … … 147 146 * RTDirOpenFiltered() call (see HostServices/SharedFolders) that seems to 148 147 * accept both the slashified paths and not. */ 148 #if defined (__OS2__) || defined (__WIN__) 149 149 if (hostPathLen > 2 && 150 150 RTPATH_IS_SEP (hostPath.raw()[hostPathLen - 1]) && 151 151 RTPATH_IS_VOLSEP (hostPath.raw()[hostPathLen - 2])) 152 152 ; 153 #else 154 if (hostPathLen == 1 && RTPATH_IS_SEP (hostPath[0])) 155 ; 156 #endif 153 157 else 154 158 RTPathStripTrailingSlash (hostPath.mutableRaw());
Note:
See TracChangeset
for help on using the changeset viewer.