VirtualBox

Changeset 37587 in vbox


Ignore:
Timestamp:
Jun 22, 2011 12:02:13 PM (13 years ago)
Author:
vboxsync
Message:

vcc build fix

Location:
trunk/src/VBox/Main
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/include/MediumFormatImpl.h

    r37586 r37587  
    5959    struct Data
    6060    {
    61         Data() : capabilities(0) {}
     61        Data() : capabilities((MediumFormatCapabilities_T)0) {}
    6262
    6363        const Utf8Str        strId;
  • trunk/src/VBox/Main/src-server/MediumFormatImpl.cpp

    r37586 r37587  
    6767    unconst(m.strName) = aVDInfo->pszBackend;
    6868    /* The capabilities of the backend. Assumes 1:1 mapping! */
    69     unconst(m.capabilities) = aVDInfo->uBackendCaps;
     69    unconst(m.capabilities) = (MediumFormatCapabilities_T)aVDInfo->uBackendCaps;
    7070    /* Save the supported file extensions in a list */
    7171    if (aVDInfo->paFileExtensions)
     
    184184    unconst(m.llFileExtensions).clear();
    185185    unconst(m.llDeviceTypes).clear();
    186     unconst(m.capabilities) = 0;
     186    unconst(m.capabilities) = (MediumFormatCapabilities_T)0;
    187187    unconst(m.strName).setNull();
    188188    unconst(m.strId).setNull();
     
    230230    /// limit (or make the argument ULONG64 after checking that COM is capable
    231231    /// of defining enums (used to represent bit flags) that contain 64-bit
    232     /// values)
    233     ComAssertRet(m.capabilities == ((ULONG)m.capabilities), E_FAIL);
    234 
    235     *aCaps = (ULONG) m.capabilities;
     232    /// values). Or go away from the enum/ulong hack for bit sets and use
     233    /// a safearray like elsewhere.
     234    ComAssertRet((uint64_t)m.capabilities == ((ULONG)m.capabilities), E_FAIL);
     235
     236    *aCaps = (ULONG)m.capabilities;
    236237
    237238    return S_OK;
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