VirtualBox

Changeset 36193 in vbox for trunk/src/VBox/Additions/common


Ignore:
Timestamp:
Mar 7, 2011 4:49:54 PM (14 years ago)
Author:
vboxsync
Message:

Additions/common/HGCMInternal: typo which caused to allocate a buffer of cb * PAGE_SIZE

File:
1 edited

Legend:

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

    r33540 r36193  
    400400                    if (VBGLR0_CAN_USE_PHYS_PAGE_LIST())
    401401                    {
    402                         size_t cPages = RTR0MemObjSize(hObj);
     402                        size_t const cPages = RTR0MemObjSize(hObj) >> PAGE_SHIFT;
    403403                        *pcbExtra += RT_OFFSETOF(HGCMPageListInfo, aPages[cPages]);
    404404                    }
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