Changeset 107091 in vbox for trunk/src/VBox/Additions/common/VBoxGuest/lib/VBoxGuestR0LibHGCMInternal.cpp
- Timestamp:
- Nov 21, 2024 4:12:02 PM (8 weeks ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxGuest/lib/VBoxGuestR0LibHGCMInternal.cpp
r107089 r107091 437 437 { 438 438 size_t const cPages = RTR0MemObjSize(hObj) >> PAGE_SHIFT; 439 *pcbExtra += RT_UOFFSETOF_DYN(HGCMPageListInfo, aPages) 440 + RT_SIZEOFMEMB(HGCMPageListInfo, aPages) * cPages; 439 *pcbExtra += RT_UOFFSETOF_FLEX_ARRAY(HGCMPageListInfo, aPages, cPages); 441 440 } 442 441 } … … 647 646 } 648 647 649 offExtra += (uint32_t)(RT_UOFFSETOF_DYN(HGCMPageListInfo, aPages) 650 + RT_SIZEOFMEMB(HGCMPageListInfo, aPages) * cPages); 648 offExtra += (uint32_t)RT_UOFFSETOF_FLEX_ARRAY(HGCMPageListInfo, aPages, cPages); 651 649 } 652 650 else
Note:
See TracChangeset
for help on using the changeset viewer.