VirtualBox

Changeset 13728 in vbox


Ignore:
Timestamp:
Nov 1, 2008 1:29:26 PM (16 years ago)
Author:
vboxsync
Message:

Main: HardDiskFormat::COMGETTER(Capabilities): Assert that capabilities take not more than 32 bits for now.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/HardDiskFormatImpl.cpp

    r13676 r13728  
    174174    CheckComRCReturnRC (autoCaller.rc());
    175175
    176     /* this is const, no need to lock */
    177     *aCaps = mData.capabilities;
     176    /* mData.capabilities is const, no need to lock */
     177
     178    /// @todo add COMGETTER(ExtendedCapabilities) when we reach the 32 bit
     179    /// limit (or make the argument ULONG64 after checking that COM is capable
     180    /// of defining enums (used to represent bit flags) that contain 64-bit
     181    /// values)
     182    ComAssertRet (mData.capabilities == ((ULONG) mData.capabilities), E_FAIL);
     183
     184    *aCaps = (ULONG) mData.capabilities;
    178185
    179186    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