VirtualBox

Ignore:
Timestamp:
Jun 17, 2019 4:04:55 PM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
131362
Message:

Main/Guest*: Must always initalize rcGuest because experience inddicates that the code handling it cannot always be depended upon to set it. bugref:9320

File:
1 edited

Legend:

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

    r79187 r79189  
    272272                 strPath.c_str(), enmDirectoryCreateFlags, fMode, fFollowSymlinks, fCanExist));
    273273
    274     GuestFsObjData objData; int rcGuest;
     274    GuestFsObjData objData;
     275    int rcGuest = VERR_IPE_UNINITIALIZED_STATUS;
    275276    int rc = mSession->i_directoryQueryInfo(strPath, fFollowSymlinks, objData, &rcGuest);
    276277    if (RT_SUCCESS(rc))
     
    11191120    const ComObjPtr<GuestSession> &pSession = mTask.GetSession();
    11201121
    1121     ComObjPtr <GuestDirectory> pDir; int rcGuest;
     1122    ComObjPtr <GuestDirectory> pDir;
     1123    int rcGuest = VERR_IPE_UNINITIALIZED_STATUS;
    11221124    int rc = pSession->i_directoryOpen(dirOpenInfo, pDir, &rcGuest);
    11231125    if (RT_FAILURE(rc))
     
    14761478        LogFlowFunc(("strSrc=%s, strDst=%s, fFollowSymlinks=%RTbool\n", strSrc.c_str(), strDst.c_str(), fFollowSymlinks));
    14771479
    1478         GuestFsObjData srcObjData; int rcGuest;
     1480        GuestFsObjData srcObjData;
     1481        int rcGuest = VERR_IPE_UNINITIALIZED_STATUS;
    14791482        rc = mSession->i_fsQueryInfo(strSrc, fFollowSymlinks, srcObjData, &rcGuest);
    14801483        if (RT_FAILURE(rc))
     
    19871990            dstOpenInfo.mSharingMode = FileSharingMode_All; /** @todo Use _Read when implemented. */
    19881991
    1989             ComObjPtr<GuestFile> dstFile; int rcGuest;
     1992            ComObjPtr<GuestFile> dstFile;
     1993            int rcGuest = VERR_IPE_UNINITIALIZED_STATUS;
    19901994            rc = mSession->i_fileOpen(dstOpenInfo, dstFile, &rcGuest);
    19911995            if (RT_FAILURE(rc))
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