VirtualBox

Changeset 31745 in vbox for trunk/src/VBox/Main


Ignore:
Timestamp:
Aug 18, 2010 9:44:22 AM (14 years ago)
Author:
vboxsync
Message:

Guest::setSupportedFeatures should take uint32_t arguments not (U)LONG64.

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

Legend:

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

    r31698 r31745  
    15551555 * Sets the supported features (and whether they are active or not).
    15561556 *
    1557  * @param ulCaps
    1558  * @param ulActive
     1557 * @param   fCaps       Guest capability bit mask (VMMDEV_GUEST_SUPPORTS_XXX).
     1558 * @param   fActive     No idea what this is supposed to be, it's always 0 and
     1559 *                      not references by this method.
    15591560 */
    1560 void Guest::setSupportedFeatures(LONG64 ulCaps, LONG64 ulActive)
     1561void Guest::setSupportedFeatures(uint32_t fCaps, uint32_t fActive)
    15611562{
    15621563    AutoCaller autoCaller(this);
     
    15651566    AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS);
    15661567
    1567     mData.mSupportsSeamless = (ulCaps & VMMDEV_GUEST_SUPPORTS_SEAMLESS);
     1568    mData.mSupportsSeamless = (fCaps & VMMDEV_GUEST_SUPPORTS_SEAMLESS);
    15681569    /** @todo Add VMMDEV_GUEST_SUPPORTS_GUEST_HOST_WINDOW_MAPPING */
    1569     mData.mSupportsGraphics = (ulCaps & VMMDEV_GUEST_SUPPORTS_GRAPHICS);
     1570    mData.mSupportsGraphics = (fCaps & VMMDEV_GUEST_SUPPORTS_GRAPHICS);
    15701571}
    15711572/* vi: set tabstop=4 shiftwidth=4 expandtab: */
  • trunk/src/VBox/Main/VMMDevInterface.cpp

    r31692 r31745  
    300300     * Report our current capabilites (and assume none is active yet).
    301301     */
    302     guest->setSupportedFeatures((ULONG64)newCapabilities, 0 /* Active capabilities, not used here. */);
     302    guest->setSupportedFeatures(newCapabilities, 0 /* Active capabilities, not used here. */);
    303303
    304304    /*
  • trunk/src/VBox/Main/include/GuestImpl.h

    r31698 r31745  
    110110    void setAdditionsInfo2(Bstr aAdditionsVersion, Bstr aVersionName, Bstr aRevision);
    111111    void setAdditionsStatus(VBoxGuestStatusFacility Facility, VBoxGuestStatusCurrent Status, ULONG ulFlags);
    112     void setSupportedFeatures(LONG64 ulCaps, LONG64 ulActive);
     112    void setSupportedFeatures(uint32_t fCaps, uint32_t fActive);
    113113    HRESULT setStatistic(ULONG aCpuId, GUESTSTATTYPE enmType, ULONG aVal);
    114114    BOOL isPageFusionEnabled();
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