Changeset 97538 in vbox for trunk/src/VBox/Main/src-client/GuestSessionImplTasks.cpp
- Timestamp:
- Nov 14, 2022 6:42:10 PM (3 years ago)
- svn:sync-xref-src-repo-rev:
- 154568
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-client/GuestSessionImplTasks.cpp
r97531 r97538 1775 1775 } 1776 1776 1777 /* Clean upthe final host desitnation path. */1778 vrc = GuestPath::Translate(strDstAbs, PATH_STYLE_NATIVE/* Source */, PATH_STYLE_NATIVE /* Dest */);1777 /* Translate the final host desitnation path. */ 1778 vrc = GuestPath::Translate(strDstAbs, mSession->i_getGuestPathStyle() /* Source */, PATH_STYLE_NATIVE /* Dest */); 1779 1779 if (RT_FAILURE(vrc)) 1780 1780 { … … 1852 1852 } 1853 1853 } 1854 } 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; 1854 1865 } 1855 1866 … … 2237 2248 2238 2249 /* Clean up the final host source path. */ 2239 vrc = GuestPath::Translate(strSrcAbs, PATH_STYLE_NATIVE /* Source */, PATH_STYLE_NATIVE /* Dest */); 2250 vrc = GuestPath::Translate(strSrcAbs, pList->mSourceSpec.enmPathStyle /* Source */, 2251 pList->mSourceSpec.enmPathStyle /* Dest */); 2240 2252 if (RT_FAILURE(vrc)) 2241 2253 { … … 2246 2258 } 2247 2259 2248 /* Clean up the final guest destination path. */2260 /* Translate final guest destination path. */ 2249 2261 vrc = GuestPath::Translate(strDstAbs, 2250 mSession->i_getGuestPathStyle() /* Source */,mSession->i_getGuestPathStyle() /* Dest */);2262 PATH_STYLE_NATIVE /* Source */, mSession->i_getGuestPathStyle() /* Dest */); 2251 2263 if (RT_FAILURE(vrc)) 2252 2264 { … … 2330 2342 } 2331 2343 2332 /* Cleanup the destinationpath. */2344 /* Translate the final guest destination file path. */ 2333 2345 vrc = GuestPath::Translate(strDstRootAbs, 2334 mSession->i_getGuestPathStyle()/* Source */, mSession->i_getGuestPathStyle() /* Dest */);2346 PATH_STYLE_NATIVE /* Source */, mSession->i_getGuestPathStyle() /* Dest */); 2335 2347 if (RT_FAILURE(vrc)) 2336 2348 {
Note:
See TracChangeset
for help on using the changeset viewer.