Ticket #20512: changeset_146628.diff
File changeset_146628.diff, 711 bytes (added by , 4 years ago) |
---|
-
branches/VBox-6.1/src/VBox/Storage/VHD.cpp
1640 1640 Assert(!(cbToWrite % VHD_SECTOR_SIZE)); 1641 1641 AssertReturn((VALID_PTR(pIoCtx) && cbToWrite), VERR_INVALID_PARAMETER); 1642 AssertReturn(uOffset + cbToWrite <= pImage->cbSize, VERR_INVALID_PARAMETER);1642 AssertReturn(uOffset + cbToWrite <= RT_ALIGN_64(pImage->cbSize, pImage->cbDataBlock), VERR_INVALID_PARAMETER); /* The image size might not be on a data block size boundary. */ 1643 1643 1644 1644 if (pImage->pBlockAllocationTable)