VirtualBox

Changeset 36373 in vbox for trunk/src/VBox/Additions


Ignore:
Timestamp:
Mar 23, 2011 4:35:46 PM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
70720
Message:

HGCMInternal.cpp: RTR0MemObjSize does the alignment assertions now.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxGuestLib/HGCMInternal.cpp

    r36200 r36373  
    400400                    if (VBGLR0_CAN_USE_PHYS_PAGE_LIST())
    401401                    {
    402                         size_t const cbObj = RTR0MemObjSize(hObj);
    403                         Assert(cbObj == RT_ALIGN_Z(cbObj, PAGE_SIZE));
    404                         size_t const cPages = cbObj >> PAGE_SHIFT;
     402                        size_t const cPages = RTR0MemObjSize(hObj) >> PAGE_SHIFT;
    405403                        *pcbExtra += RT_OFFSETOF(HGCMPageListInfo, aPages[cPages]);
    406404                    }
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