Changeset 38495 in vbox
- Timestamp:
- Aug 19, 2011 9:06:33 AM (14 years ago)
- svn:sync-xref-src-repo-rev:
- 73593
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-client/ConsoleImpl.cpp
r37851 r38495 7134 7134 7135 7135 // check whether the path is valid and exists 7136 /* Check whether the path is full (absolute) */7137 7136 char hostPathFull[RTPATH_MAX]; 7138 7137 int vrc = RTPathAbsEx(NULL, … … 7144 7143 tr("Invalid shared folder path: '%s' (%Rrc)"), 7145 7144 aData.m_strHostPath.c_str(), vrc); 7146 7145 if (!RTPathExists(hostPathFull)) 7146 return setError(E_INVALIDARG, 7147 tr("Shared folder path '%s' does not exist on the host"), 7148 aData.m_strHostPath.c_str()); 7149 /* Check whether the path is full (absolute) */ 7147 7150 if (RTPathCompare(aData.m_strHostPath.c_str(), hostPathFull) != 0) 7148 7151 return setError(E_INVALIDARG, 7149 7152 tr("Shared folder path '%s' is not absolute"), 7150 aData.m_strHostPath.c_str());7151 if (!RTPathExists(hostPathFull))7152 return setError(E_INVALIDARG,7153 tr("Shared folder path '%s' does not exist on the host"),7154 7153 aData.m_strHostPath.c_str()); 7155 7154
Note:
See TracChangeset
for help on using the changeset viewer.