Changeset 33191 in vbox for trunk/src/VBox/Devices/Storage
- Timestamp:
- Oct 18, 2010 11:49:38 AM (14 years ago)
- svn:sync-xref-src-repo-rev:
- 66728
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Storage/VmdkHDDCore.cpp
r33190 r33191 2716 2716 int rc; 2717 2717 2718 if ( fMagicAlreadyRead)2718 if (!fMagicAlreadyRead) 2719 2719 rc = vmdkFileReadSync(pImage, pExtent->pFile, 0, &Header, 2720 2720 sizeof(Header), NULL); … … 2759 2759 pExtent->uAppendPosition = RT_ALIGN_64(cbFile, 512); 2760 2760 2761 if ( !(pImage->uOpenFlags & VD_OPEN_FLAGS_READONLY)2762 || ( pExtent->fFooter2763 &&!(pImage->uOpenFlags & VD_OPEN_FLAGS_SEQUENTIAL)))2761 if ( pExtent->fFooter 2762 && ( !(pImage->uOpenFlags & VD_OPEN_FLAGS_READONLY) 2763 || !(pImage->uOpenFlags & VD_OPEN_FLAGS_SEQUENTIAL))) 2764 2764 { 2765 2765 /* Read the footer, which comes before the end-of-stream marker. */ … … 3290 3290 goto out; 3291 3291 } 3292 rc = vmdkReadBinaryMetaExtent(pImage, pExtent, false /* fMagicAlreadyRead */);3292 rc = vmdkReadBinaryMetaExtent(pImage, pExtent, true /* fMagicAlreadyRead */); 3293 3293 if (RT_FAILURE(rc)) 3294 3294 goto out; … … 3482 3482 } 3483 3483 rc = vmdkReadBinaryMetaExtent(pImage, pExtent, 3484 true /* fMagicAlreadyRead */);3484 false /* fMagicAlreadyRead */); 3485 3485 if (RT_FAILURE(rc)) 3486 3486 goto out;
Note:
See TracChangeset
for help on using the changeset viewer.