Changeset 85549 in vbox
- Timestamp:
- Jul 30, 2020 9:59:46 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/include/GuestDnDPrivate.h
r85537 r85549 159 159 return VINF_SUCCESS; 160 160 161 cbSize = RT_ALIGN_Z(cbSize, PAGE_SIZE); 162 161 163 if (cbSize > _32M) /* Meta data can be up to 32MB. */ 162 164 return VERR_BUFFER_OVERFLOW; … … 166 168 { 167 169 Assert(cbData == 0); 168 pvTmp = RTMemAllocZ( RT_ALIGN_Z(cbSize, 4096));170 pvTmp = RTMemAllocZ(cbSize); 169 171 } 170 172 else 171 173 { 172 174 AssertPtr(pvData); 173 pvTmp = RTMemRealloc(pvData, RT_ALIGN_Z(cbSize, 4096)); 174 RT_BZERO(pvTmp, cbSize); 175 pvTmp = RTMemRealloc(pvData, cbSize); 175 176 } 176 177
Note:
See TracChangeset
for help on using the changeset viewer.