VirtualBox

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


Ignore:
Timestamp:
Mar 8, 2011 9:02:01 AM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
70407
Message:

fixed assertion

File:
1 edited

Legend:

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

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