Changeset 44225 in vbox for trunk/src/VBox/Storage/VDI.cpp
- Timestamp:
- Jan 2, 2013 12:04:04 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Storage/VDI.cpp
r43602 r44225 2949 2949 do 2950 2950 { 2951 VDIIMAGEBLOCKPOINTER uBlock = 0;2952 2953 2951 /* Allocate data buffer. */ 2954 2952 pvBuf = RTMemAllocZ(pImage->cbTotalBlockData); … … 2972 2970 for (unsigned idxBlock = 0; idxBlock < cBlocksOld; idxBlock++) 2973 2971 { 2974 if ( pImage->paBlocks[idxBlock] == uBlock)2972 if (!pImage->paBlocks[idxBlock]) 2975 2973 { 2976 2974 /* Read data and append to the end of the image. */ … … 3024 3022 break; 3025 3023 3026 uBlock++;3027 3024 offStartDataNew += pImage->cbTotalBlockData; 3028 3025 } … … 3073 3070 /* Update geometry. */ 3074 3071 pImage->PCHSGeometry = *pPCHSGeometry; 3072 pImage->cbImage = cbSize; 3075 3073 3076 3074 PVDIDISKGEOMETRY pGeometry = getImageLCHSGeometry(&pImage->Header);
Note:
See TracChangeset
for help on using the changeset viewer.