VirtualBox

Changeset 85217 in vbox


Ignore:
Timestamp:
Jul 11, 2020 1:56:26 PM (4 years ago)
Author:
vboxsync
Message:

Main/MachineImplMoveVM.cpp: Two FAILED/RT_FAILURE mixups. One sign problem. bugref:9790

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-server/MachineImplMoveVM.cpp

    r82968 r85217  
    162162
    163163    int vrc = RTFsQuerySizes(strTargetFolder.c_str(), &cbTotal, &cbFree, &cbBlock, &cbSector);
    164     if (FAILED(vrc))
     164    if (RT_FAILURE(vrc))
    165165        return m_pMachine->setErrorBoth(VBOX_E_IPRT_ERROR, vrc,
    166166                                        m_pMachine->tr("Unable to determine free space at move destination ('%s'): %Rrc"),
     
    197197    RTFSPROPERTIES properties;
    198198    vrc = RTFsQueryProperties(strTargetFolder.c_str(), &properties);
    199     if (FAILED(vrc))
     199    if (RT_FAILURE(vrc))
    200200        return m_pMachine->setErrorVrc(vrc, "RTFsQueryProperties(%s): %Rrc", strTargetFolder.c_str(), vrc);
    201201
     
    353353                        ++uCount;
    354354                        uTotalWeight += mtc.chain[a - 1].uWeight;
    355                         totalMediumsSize += cbSize;
     355                        totalMediumsSize += (uint64_t)cbSize;
    356356                        Log2(("Image %s was added into the moved list\n", name.c_str()));
    357357                    }
Note: See TracChangeset for help on using the changeset viewer.

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