VirtualBox

Changeset 45098 in vbox for trunk/src


Ignore:
Timestamp:
Mar 20, 2013 6:05:59 AM (12 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
84387
Message:

Main/Snapshot: fragment of code has been replaced by a call isMediumFormatFile()

File:
1 edited

Legend:

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

    r44503 r45098  
    25042504        }
    25052505
    2506         {/* see @bugref{4386} */
     2506        {
    25072507            /*check available place on the storage*/
    25082508            RTFOFF pcbTotal = 0;
     
    25352535                if (FAILED(rc))
    25362536                    throw rc;
    2537                 ULONG uTargetCaps = 0;
    2538                 com::SafeArray <MediumFormatCapabilities_T> mediumFormatCap;
    2539                 rc = pTargetFormat->COMGETTER(Capabilities)(ComSafeArrayAsOutParam(mediumFormatCap));
    2540 
    2541                 if (FAILED(rc)) throw rc;
    2542                 else
    2543                 {
    2544                     for (ULONG j = 0; j < mediumFormatCap.size(); j++)
    2545                         uTargetCaps |= mediumFormatCap[j];
    2546                 }
    2547 
    2548                 if (uTargetCaps & MediumFormatCapabilities_File)
     2537
     2538                if(pTarget_local->isMediumFormatFile())
    25492539                {
    25502540                    int vrc = RTFsQuerySerial(pTarget_local->getLocationFull().c_str(), &pu32Serial);
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