Changeset 15945 in vbox
- Timestamp:
- Jan 14, 2009 4:52:20 PM (16 years ago)
- Location:
- trunk/src/VBox/Main
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/ConsoleImpl.cpp
r15762 r15945 2105 2105 rc = sharedFolder->init (this, aName, aHostPath, aWritable); 2106 2106 CheckComRCReturnRC (rc); 2107 2108 BOOL accessible = FALSE;2109 rc = sharedFolder->COMGETTER(Accessible) (&accessible);2110 CheckComRCReturnRC (rc);2111 2112 if (!accessible)2113 return setError (VBOX_E_FILE_ERROR,2114 tr ("Shared folder host path '%ls' is not accessible"), aHostPath);2115 2107 2116 2108 /* protect mpVM (if not NULL) */ -
trunk/src/VBox/Main/MachineImpl.cpp
r15888 r15945 2870 2870 rc = sharedFolder->init (machine(), aName, aHostPath, aWritable); 2871 2871 CheckComRCReturnRC (rc); 2872 2873 BOOL accessible = FALSE;2874 rc = sharedFolder->COMGETTER(Accessible) (&accessible);2875 CheckComRCReturnRC (rc);2876 2877 if (!accessible)2878 return setWarning (VBOX_E_FILE_ERROR,2879 tr ("Shared folder host path '%ls' is not accessible"), aHostPath);2880 2872 2881 2873 mHWData.backup(); -
trunk/src/VBox/Main/SharedFolderImpl.cpp
r15051 r15945 293 293 Utf8Str hostPath = Utf8Str (mData.mHostPath); 294 294 char hostPathFull [RTPATH_MAX]; 295 int vrc = RTPathExists (hostPath) ? RTPathReal (hostPath, hostPathFull,296 sizeof (hostPathFull))297 : VERR_PATH_NOT_FOUND;295 int vrc = RTPathExists (hostPath) ? RTPathReal (hostPath, hostPathFull, 296 sizeof (hostPathFull)) 297 : VERR_PATH_NOT_FOUND; 298 298 if (RT_SUCCESS (vrc)) 299 299 { … … 302 302 } 303 303 304 HRESULT rc = S_OK;305 if (vrc != VERR_PATH_NOT_FOUND)306 rc = setError (E_FAIL,307 tr ("Invalid shared folder path: '%s' (%Rrc)"), hostPath.raw(), vrc);308 309 304 LogWarningThisFunc (("'%s' is not accessible (%Rrc)\n", hostPath.raw(), vrc)); 310 305
Note:
See TracChangeset
for help on using the changeset viewer.