VirtualBox

Ignore:
Timestamp:
Nov 14, 2022 6:42:10 PM (3 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
154568
Message:

Guest Control/Main: Some more fixes + more tests. bugref:10286

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-client/GuestSessionImplTasks.cpp

    r97531 r97538  
    17751775                }
    17761776
    1777                 /* Clean up the 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 */);
    17791779                if (RT_FAILURE(vrc))
    17801780                {
     
    18521852                    }
    18531853                }
     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;
    18541865            }
    18551866
     
    22372248
    22382249                /* 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 */);
    22402252                if (RT_FAILURE(vrc))
    22412253                {
     
    22462258                }
    22472259
    2248                 /* Clean up the final guest destination path. */
     2260                /* Translate final guest destination path. */
    22492261                vrc = GuestPath::Translate(strDstAbs,
    2250                                            mSession->i_getGuestPathStyle() /* Source */, mSession->i_getGuestPathStyle() /* Dest */);
     2262                                           PATH_STYLE_NATIVE /* Source */, mSession->i_getGuestPathStyle() /* Dest */);
    22512263                if (RT_FAILURE(vrc))
    22522264                {
     
    23302342            }
    23312343
    2332             /* Cleanup the destination path. */
     2344            /* Translate the final guest destination file path. */
    23332345            vrc = GuestPath::Translate(strDstRootAbs,
    2334                                        mSession->i_getGuestPathStyle() /* Source */,  mSession->i_getGuestPathStyle() /* Dest */);
     2346                                       PATH_STYLE_NATIVE /* Source */,  mSession->i_getGuestPathStyle() /* Dest */);
    23352347            if (RT_FAILURE(vrc))
    23362348            {
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette