Changeset 19736 in vbox for trunk/src/VBox/Devices
- Timestamp:
- May 15, 2009 1:43:22 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Storage/VHDHDDCore.cpp
r19686 r19736 379 379 ddh.Checksum = RT_H2BE_U32(vhdChecksum(&ddh, sizeof(ddh))); 380 380 rc = RTFileWriteAt(pImage->File, pImage->u64DataOffset, &ddh, sizeof(ddh), NULL); 381 if (RT_FAILURE(rc)) 382 return rc; 383 384 /* Update the VHD footer copy. */ 385 rc = RTFileWriteAt(pImage->File, 0, &pImage->vhdFooterCopy, sizeof(VHDFooter), NULL); 381 386 382 387 out: … … 1221 1226 { 1222 1227 pImage->ImageUuid = *pUuid; 1223 /**@todo: implement */ 1228 /* Update the footer copy. It will get written to disk when the image is closed. */ 1229 memcpy(&pImage->vhdFooterCopy.UniqueID, pUuid, 16); 1224 1230 rc = VINF_SUCCESS; 1225 1231 }
Note:
See TracChangeset
for help on using the changeset viewer.