Changeset 40843 in vbox for trunk/src/VBox/Storage/VMDK.cpp
- Timestamp:
- Apr 10, 2012 8:53:19 AM (13 years ago)
- svn:sync-xref-src-repo-rev:
- 77362
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Storage/VMDK.cpp
r40739 r40843 2525 2525 goto out; 2526 2526 2527 if ( RT_LE2H_U32(Header.flags& RT_BIT(17))2527 if ( (RT_LE2H_U32(Header.flags) & RT_BIT(17)) 2528 2528 && RT_LE2H_U64(Header.gdOffset) == VMDK_GD_AT_END) 2529 2529 pExtent->fFooter = true; … … 4233 4233 PVMDKMARKER pMarker = (PVMDKMARKER)&aMarker[0]; 4234 4234 memset(pMarker, '\0', sizeof(aMarker)); 4235 pMarker->uSector = RT_H2LE_U64(VMDK_BYTE2SECTOR( pExtent->cGTEntries * sizeof(uint32_t)));4235 pMarker->uSector = RT_H2LE_U64(VMDK_BYTE2SECTOR((uint64_t)pExtent->cGTEntries * sizeof(uint32_t))); 4236 4236 pMarker->uType = RT_H2LE_U32(VMDK_MARKER_GT); 4237 4237 rc = vdIfIoIntFileWriteSync(pImage->pIfIo, pExtent->pFile->pStorage, uFileOffset, … … 4341 4341 PVMDKMARKER pMarker = (PVMDKMARKER)&aMarker[0]; 4342 4342 memset(pMarker, '\0', sizeof(aMarker)); 4343 pMarker->uSector = VMDK_BYTE2SECTOR(RT_ALIGN_64(RT_H2LE_U64( pExtent->cGDEntries * sizeof(uint32_t)), 512));4343 pMarker->uSector = VMDK_BYTE2SECTOR(RT_ALIGN_64(RT_H2LE_U64((uint64_t)pExtent->cGDEntries * sizeof(uint32_t)), 512)); 4344 4344 pMarker->uType = RT_H2LE_U32(VMDK_MARKER_GD); 4345 4345 rc = vdIfIoIntFileWriteSync(pImage->pIfIo, pExtent->pFile->pStorage, uFileOffset,
Note:
See TracChangeset
for help on using the changeset viewer.