VirtualBox

Ignore:
Timestamp:
Feb 1, 2013 6:28:53 AM (12 years ago)
Author:
vboxsync
Message:

Main: change API. Interface IMediumFormat was touched. Attribute capabilities got the type MediumFormatCapabilities and option safeArray. PR5434.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageList.cpp

    r44498 r44503  
    271271                    COMGETTER(Id)(description.asOutParam()));
    272272
    273         ULONG caps;
     273        ULONG caps = 0;
     274        com::SafeArray <MediumFormatCapabilities_T> mediumFormatCap;
    274275        CHECK_ERROR(mediumFormats[i],
    275                     COMGETTER(Capabilities)(&caps));
     276                    COMGETTER(Capabilities)(ComSafeArrayAsOutParam(mediumFormatCap)));
     277        for (ULONG j = 0; j < mediumFormatCap.size(); j++)
     278            caps |= mediumFormatCap[j];
     279
    276280
    277281        RTPrintf("Backend %u: id='%ls' description='%ls' capabilities=%#06x extensions='",
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