- Timestamp:
- Sep 18, 2019 12:04:18 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-client/GuestSessionImpl.cpp
r80873 r80875 2942 2942 HRESULT GuestSession::close() 2943 2943 { 2944 AutoCaller autoCaller(this);2945 if (FAILED(autoCaller.rc())) return autoCaller.rc();2946 2947 2944 LogFlowThisFuncEnter(); 2948 2945 … … 2988 2985 ComPtr<IProgress> &aProgress) 2989 2986 { 2990 AutoCaller autoCaller(this);2991 if (FAILED(autoCaller.rc())) return autoCaller.rc();2992 2993 2987 uint32_t fFlags = FileCopyFlag_None; 2994 2988 if (aFlags.size()) … … 3016 3010 const std::vector<FileCopyFlag_T> &aFlags, ComPtr<IProgress> &aProgress) 3017 3011 { 3018 AutoCaller autoCaller(this);3019 if (FAILED(autoCaller.rc())) return autoCaller.rc();3020 3021 3012 uint32_t fFlags = FileCopyFlag_None; 3022 3013 if (aFlags.size()) … … 3050 3041 ComPtr<IProgress> &aProgress) 3051 3042 { 3052 AutoCaller autoCaller(this);3053 if (FAILED(autoCaller.rc())) return autoCaller.rc();3054 3055 3043 const size_t cSources = aSources.size(); 3056 3044 if ( (aFilters.size() && aFilters.size() != cSources) … … 3130 3118 ComPtr<IProgress> &aProgress) 3131 3119 { 3132 AutoCaller autoCaller(this);3133 if (FAILED(autoCaller.rc())) return autoCaller.rc();3134 3135 3120 const size_t cSources = aSources.size(); 3136 3121 if ( (aFilters.size() && aFilters.size() != cSources) … … 3211 3196 const std::vector<DirectoryCopyFlag_T> &aFlags, ComPtr<IProgress> &aProgress) 3212 3197 { 3213 AutoCaller autoCaller(this);3214 if (FAILED(autoCaller.rc())) return autoCaller.rc();3215 3216 3198 uint32_t fFlags = DirectoryCopyFlag_None; 3217 3199 if (aFlags.size()) … … 3240 3222 const std::vector<DirectoryCopyFlag_T> &aFlags, ComPtr<IProgress> &aProgress) 3241 3223 { 3242 AutoCaller autoCaller(this);3243 if (FAILED(autoCaller.rc())) return autoCaller.rc();3244 3245 3224 uint32_t fFlags = DirectoryCopyFlag_None; 3246 3225 if (aFlags.size()) … … 3270 3249 const std::vector<DirectoryCreateFlag_T> &aFlags) 3271 3250 { 3272 AutoCaller autoCaller(this);3273 if (FAILED(autoCaller.rc())) return autoCaller.rc();3274 3275 3251 if (RT_UNLIKELY((aPath.c_str()) == NULL || *(aPath.c_str()) == '\0')) 3276 3252 return setError(E_INVALIDARG, tr("No directory to create specified")); … … 3327 3303 { 3328 3304 RT_NOREF(aMode, aSecure); /** @todo r=bird: WTF? */ 3329 3330 AutoCaller autoCaller(this);3331 if (FAILED(autoCaller.rc())) return autoCaller.rc();3332 3305 3333 3306 if (RT_UNLIKELY((aTemplateName.c_str()) == NULL || *(aTemplateName.c_str()) == '\0')) … … 3424 3397 const std::vector<DirectoryOpenFlag_T> &aFlags, ComPtr<IGuestDirectory> &aDirectory) 3425 3398 { 3426 AutoCaller autoCaller(this);3427 if (FAILED(autoCaller.rc())) return autoCaller.rc();3428 3429 3399 if (RT_UNLIKELY((aPath.c_str()) == NULL || *(aPath.c_str()) == '\0')) 3430 3400 return setError(E_INVALIDARG, tr("No directory to open specified")); … … 3484 3454 HRESULT GuestSession::directoryRemove(const com::Utf8Str &aPath) 3485 3455 { 3486 AutoCaller autoCaller(this); 3487 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 3488 3489 if (RT_UNLIKELY((aPath.c_str()) == NULL || *(aPath.c_str()) == '\0')) 3456 if (RT_UNLIKELY(aPath.c_str() == NULL || *aPath.c_str() == '\0')) 3490 3457 return setError(E_INVALIDARG, tr("No directory to remove specified")); 3491 3458 … … 3526 3493 ComPtr<IProgress> &aProgress) 3527 3494 { 3528 AutoCaller autoCaller(this); 3529 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 3530 3531 if (RT_UNLIKELY((aPath.c_str()) == NULL || *(aPath.c_str()) == '\0')) 3495 if (RT_UNLIKELY(aPath.c_str() == NULL || *aPath.c_str() == '\0')) 3532 3496 return setError(E_INVALIDARG, tr("No directory to remove recursively specified")); 3533 3497 … … 3705 3669 HRESULT GuestSession::fileExists(const com::Utf8Str &aPath, BOOL aFollowSymlinks, BOOL *aExists) 3706 3670 { 3707 AutoCaller autoCaller(this);3708 if (FAILED(autoCaller.rc())) return autoCaller.rc();3709 3710 3671 /* By default we return non-existent. */ 3711 3672 *aExists = FALSE; … … 3772 3733 const std::vector<FileOpenExFlag_T> &aFlags, ComPtr<IGuestFile> &aFile) 3773 3734 { 3774 AutoCaller autoCaller(this);3775 if (FAILED(autoCaller.rc())) return autoCaller.rc();3776 3777 3735 if (RT_UNLIKELY((aPath.c_str()) == NULL || *(aPath.c_str()) == '\0')) 3778 3736 return setError(E_INVALIDARG, tr("No file to open specified")); … … 3882 3840 HRESULT GuestSession::fileQuerySize(const com::Utf8Str &aPath, BOOL aFollowSymlinks, LONG64 *aSize) 3883 3841 { 3884 AutoCaller autoCaller(this);3885 if (FAILED(autoCaller.rc())) return autoCaller.rc();3886 3887 3842 if (aPath.isEmpty()) 3888 3843 return setError(E_INVALIDARG, tr("No path specified")); … … 3911 3866 HRESULT GuestSession::fsObjExists(const com::Utf8Str &aPath, BOOL aFollowSymlinks, BOOL *aExists) 3912 3867 { 3913 AutoCaller autoCaller(this);3914 if (FAILED(autoCaller.rc())) return autoCaller.rc();3915 3916 3868 if (aPath.isEmpty()) 3917 3869 return setError(E_INVALIDARG, tr("No path specified")); … … 3955 3907 HRESULT GuestSession::fsObjQueryInfo(const com::Utf8Str &aPath, BOOL aFollowSymlinks, ComPtr<IGuestFsObjInfo> &aInfo) 3956 3908 { 3957 AutoCaller autoCaller(this);3958 if (FAILED(autoCaller.rc())) return autoCaller.rc();3959 3960 3909 if (aPath.isEmpty()) 3961 3910 return setError(E_INVALIDARG, tr("No path specified")); … … 3995 3944 HRESULT GuestSession::fsObjRemove(const com::Utf8Str &aPath) 3996 3945 { 3997 AutoCaller autoCaller(this);3998 if (FAILED(autoCaller.rc())) return autoCaller.rc();3999 4000 3946 if (RT_UNLIKELY(aPath.isEmpty())) 4001 3947 return setError(E_INVALIDARG, tr("No path specified")); … … 4022 3968 HRESULT GuestSession::fsObjRemoveArray(const std::vector<com::Utf8Str> &aPaths, ComPtr<IProgress> &aProgress) 4023 3969 { 4024 AutoCaller autoCaller(this);4025 if (FAILED(autoCaller.rc())) return autoCaller.rc();4026 4027 3970 RT_NOREF(aPaths, aProgress); 4028 4029 3971 return E_NOTIMPL; 4030 3972 } … … 4034 3976 const std::vector<FsObjRenameFlag_T> &aFlags) 4035 3977 { 4036 AutoCaller autoCaller(this);4037 if (FAILED(autoCaller.rc())) return autoCaller.rc();4038 4039 3978 if (RT_UNLIKELY(aSource.isEmpty())) 4040 3979 return setError(E_INVALIDARG, tr("No source path specified")); … … 4140 4079 ComPtr<IGuestProcess> &aGuestProcess) 4141 4080 { 4142 AutoCaller autoCaller(this);4143 if (FAILED(autoCaller.rc())) return autoCaller.rc();4144 4145 4081 HRESULT hr = i_isStartedExternal(); 4146 4082 if (FAILED(hr)) … … 4247 4183 4248 4184 { 4249 AutoCaller autoCaller(this);4250 if (FAILED(autoCaller.rc())) return autoCaller.rc();4251 4252 4185 if (aPid == 0) 4253 4186 return setError(E_INVALIDARG, tr("No valid process ID (PID) specified")); … … 4295 4228 HRESULT GuestSession::waitFor(ULONG aWaitFor, ULONG aTimeoutMS, GuestSessionWaitResult_T *aReason) 4296 4229 { 4297 AutoCaller autoCaller(this);4298 if (FAILED(autoCaller.rc())) return autoCaller.rc();4299 4300 4230 /* Note: No call to i_isReadyExternal() needed here, as the session might not has been started (yet). */ 4301 4231 … … 4341 4271 GuestSessionWaitResult_T *aReason) 4342 4272 { 4343 AutoCaller autoCaller(this);4344 if (FAILED(autoCaller.rc())) return autoCaller.rc();4345 4346 4273 /* Note: No call to i_isReadyExternal() needed here, as the session might not has been started (yet). */ 4347 4274
Note:
See TracChangeset
for help on using the changeset viewer.