Changeset 97541 in vbox
- Timestamp:
- Nov 15, 2022 6:17:13 AM (2 years ago)
- svn:sync-xref-src-repo-rev:
- 154571
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-client/GuestSessionImplTasks.cpp
r97540 r97541 1854 1854 } 1855 1855 1856 /* Translate the final host destination file path. */ 1857 vrc = GuestPath::Translate(strDstRootAbs, 1858 mSession->i_getGuestPathStyle() /* Dest */, PATH_STYLE_NATIVE /* Source */); 1859 if (RT_FAILURE(vrc)) 1860 { 1861 setProgressErrorMsg(VBOX_E_IPRT_ERROR, 1862 Utf8StrFmt(tr("Translating host destination path \"%s\" failed: %Rrc"), 1863 strDstRootAbs.c_str(), vrc)); 1864 break; 1865 } 1866 1867 if ( RT_SUCCESS(vrc) 1868 && !pList->mSourceSpec.fDryRun) 1869 vrc = fileCopyFromGuest(strSrcRootAbs, strDstRootAbs, pList->mSourceSpec.fFileCopyFlags); 1856 if (RT_SUCCESS(vrc)) 1857 { 1858 /* Translate the final host destination file path. */ 1859 vrc = GuestPath::Translate(strDstRootAbs, 1860 mSession->i_getGuestPathStyle() /* Dest */, PATH_STYLE_NATIVE /* Source */); 1861 if (RT_FAILURE(vrc)) 1862 { 1863 setProgressErrorMsg(VBOX_E_IPRT_ERROR, 1864 Utf8StrFmt(tr("Translating host destination path \"%s\" failed: %Rrc"), 1865 strDstRootAbs.c_str(), vrc)); 1866 break; 1867 } 1868 1869 if (!pList->mSourceSpec.fDryRun) 1870 vrc = fileCopyFromGuest(strSrcRootAbs, strDstRootAbs, pList->mSourceSpec.fFileCopyFlags); 1871 } 1870 1872 } 1871 1873 else … … 2342 2344 } 2343 2345 2344 /* Translate the final guest destination file path. */ 2345 vrc = GuestPath::Translate(strDstRootAbs, 2346 PATH_STYLE_NATIVE /* Source */, mSession->i_getGuestPathStyle() /* Dest */); 2347 if (RT_FAILURE(vrc)) 2348 { 2349 setProgressErrorMsg(VBOX_E_IPRT_ERROR, 2350 Utf8StrFmt(tr("Translating guest destination path \"%s\" failed: %Rrc"), 2351 strDstRootAbs.c_str(), vrc)); 2352 break; 2353 } 2354 2355 if ( RT_SUCCESS(vrc) 2356 && !pList->mSourceSpec.fDryRun) 2357 vrc = fileCopyToGuest(strSrcRootAbs, strDstRootAbs, pList->mSourceSpec.fFileCopyFlags); 2346 if (RT_SUCCESS(vrc)) 2347 { 2348 /* Translate the final guest destination file path. */ 2349 vrc = GuestPath::Translate(strDstRootAbs, 2350 PATH_STYLE_NATIVE /* Source */, mSession->i_getGuestPathStyle() /* Dest */); 2351 if (RT_FAILURE(vrc)) 2352 { 2353 setProgressErrorMsg(VBOX_E_IPRT_ERROR, 2354 Utf8StrFmt(tr("Translating guest destination path \"%s\" failed: %Rrc"), 2355 strDstRootAbs.c_str(), vrc)); 2356 break; 2357 } 2358 2359 if (!pList->mSourceSpec.fDryRun) 2360 vrc = fileCopyToGuest(strSrcRootAbs, strDstRootAbs, pList->mSourceSpec.fFileCopyFlags); 2361 } 2358 2362 } 2359 2363 else
Note:
See TracChangeset
for help on using the changeset viewer.