- Timestamp:
- Jun 14, 2013 4:22:55 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r3/generic/allocex-r3-generic.cpp
r46567 r46568 81 81 else 82 82 cbAligned = RT_ALIGN_Z(cb, sizeof(uint64_t)); 83 AssertMsgReturn(cbAligned >= cb && cbAligned <= ~(size_t)0 / 2U, ("cbAligned=%#zx cb=%#zx", cbAligned, cb),83 AssertMsgReturn(cbAligned >= cb && cbAligned <= ~(size_t)0, ("cbAligned=%#zx cb=%#zx", cbAligned, cb), 84 84 VERR_INVALID_PARAMETER); 85 85 … … 107 107 pHdr->u32Magic = RTMEMHDR_MAGIC; 108 108 pHdr->fFlags = fFlags; 109 pHdr->cb = cbAligned;110 pHdr->cbReq = cb;109 pHdr->cb = (uint32_t)cbAligned; 110 pHdr->cbReq = (uint32_t)cb; 111 111 112 112 *ppv = pHdr + 1;
Note:
See TracChangeset
for help on using the changeset viewer.