Changeset 16215 in vbox for trunk/src/VBox/Main/SharedFolderImpl.cpp
- Timestamp:
- Jan 24, 2009 11:11:56 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/SharedFolderImpl.cpp
r15978 r16215 104 104 unconst (mMachine) = aMachine; 105 105 106 HRESULT rc = protectedInit (aMachine, aThat->m Data.mName,107 aThat->m Data.mHostPath, aThat->mData.mWritable);106 HRESULT rc = protectedInit (aMachine, aThat->m.name, 107 aThat->m.hostPath, aThat->m.writable); 108 108 109 109 /* Confirm a successful initialization when it's the case */ … … 222 222 mParent->addDependentChild (this); 223 223 224 unconst (m Data.mName) = aName;225 unconst (m Data.mHostPath) = hostPath;226 m Data.mWritable = aWritable;224 unconst (m.name) = aName; 225 unconst (m.hostPath) = hostPath; 226 m.writable = aWritable; 227 227 228 228 return S_OK; … … 263 263 264 264 /* mName is constant during life time, no need to lock */ 265 m Data.mName.cloneTo (aName);265 m.name.cloneTo (aName); 266 266 267 267 return S_OK; … … 276 276 277 277 /* mHostPath is constant during life time, no need to lock */ 278 m Data.mHostPath.cloneTo (aHostPath);278 m.hostPath.cloneTo (aHostPath); 279 279 280 280 return S_OK; … … 283 283 STDMETHODIMP SharedFolder::COMGETTER(Accessible) (BOOL *aAccessible) 284 284 { 285 CheckComArgOutPointerValid (aAccessible);285 CheckComArgOutPointerValid (aAccessible); 286 286 287 287 AutoCaller autoCaller (this); … … 291 291 292 292 /* check whether the host path exists */ 293 Utf8Str hostPath = Utf8Str (m Data.mHostPath);293 Utf8Str hostPath = Utf8Str (m.hostPath); 294 294 char hostPathFull [RTPATH_MAX]; 295 295 int vrc = RTPathExists (hostPath) ? RTPathReal (hostPath, hostPathFull, … … 302 302 } 303 303 304 LogWarningThisFunc (("'%s' is not accessible (%Rrc)\n", hostPath.raw(), vrc)); 304 AutoWriteLock alock (this); 305 306 m.lastAccessError = BstrFmt ( 307 tr ("'%s' is not accessible (%Rrc)"), hostPath.raw(), vrc); 308 309 LogWarningThisFunc (("m.lastAccessError=\"%ls\"\n", m.lastAccessError.raw())); 305 310 306 311 *aAccessible = FALSE; … … 312 317 CheckComArgOutPointerValid(aWritable); 313 318 314 *aWritable = mData.mWritable; 315 316 return S_OK; 317 } 319 *aWritable = m.writable; 320 321 return S_OK; 322 } 323 324 STDMETHODIMP SharedFolder::COMGETTER(LastAccessError) (BSTR *aLastAccessError) 325 { 326 CheckComArgOutPointerValid (aLastAccessError); 327 328 AutoCaller autoCaller (this); 329 CheckComRCReturnRC (autoCaller.rc()); 330 331 AutoReadLock alock (this); 332 333 m.lastAccessError.cloneTo (aLastAccessError); 334 335 return S_OK; 336 } 337 318 338 /* vi: set tabstop=4 shiftwidth=4 expandtab: */
Note:
See TracChangeset
for help on using the changeset viewer.