- Timestamp:
- Apr 11, 2017 9:31:25 AM (8 years ago)
- Location:
- trunk/src/VBox/Storage
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Storage/VDI.cpp
r66486 r66505 1381 1381 AssertReturn((VALID_PTR(pszFilename) && *pszFilename), VERR_INVALID_PARAMETER); 1382 1382 1383 PVDIIMAGEDESC pImage = (PVDIIMAGEDESC)RTMemAllocZ( sizeof(VDIIMAGEDESC));1383 PVDIIMAGEDESC pImage = (PVDIIMAGEDESC)RTMemAllocZ(RT_UOFFSETOF(VDIIMAGEDESC, RegionList.aRegions[1])); 1384 1384 if (RT_LIKELY(pImage)) 1385 1385 { -
trunk/src/VBox/Storage/VMDK.cpp
r66486 r66505 5186 5186 5187 5187 int rc = VINF_SUCCESS; 5188 PVMDKIMAGE pImage = (PVMDKIMAGE)RTMemAllocZ( sizeof(VMDKIMAGE));5188 PVMDKIMAGE pImage = (PVMDKIMAGE)RTMemAllocZ(RT_UOFFSETOF(VMDKIMAGE, RegionList.aRegions[1])); 5189 5189 if (RT_LIKELY(pImage)) 5190 5190 {
Note:
See TracChangeset
for help on using the changeset viewer.