Changeset 18505 in vbox for trunk/src/VBox/Devices/Storage
- Timestamp:
- Mar 29, 2009 2:39:11 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Storage/VmdkHDDCore.cpp
r18347 r18505 891 891 892 892 Marker.uSector = RT_H2LE_U64(uLBA); 893 Marker.cbSize = RT_H2LE_U32( cbToWrite);893 Marker.cbSize = RT_H2LE_U32((uint32_t)cbToWrite); 894 894 if (uMarker == VMDK_MARKER_IGNORE) 895 895 { … … 5704 5704 unsigned cTasksToSubmit = 0; 5705 5705 PPDMDATASEG paSegCurrent = paSeg; 5706 unsignedcbLeftInCurrentSegment = paSegCurrent->cbSeg;5707 unsigneduOffsetInCurrentSegment = 0;5706 size_t cbLeftInCurrentSegment = paSegCurrent->cbSeg; 5707 size_t uOffsetInCurrentSegment = 0; 5708 5708 5709 5709 AssertPtr(pImage); … … 5720 5720 while (cbRead && cSeg) 5721 5721 { 5722 unsignedcbToRead;5722 size_t cbToRead; 5723 5723 uint64_t uSectorExtentRel; 5724 5724 … … 5747 5747 void *pTask; 5748 5748 rc = pImage->pInterfaceAsyncIOCallbacks->pfnPrepareRead(pImage->pInterfaceAsyncIO->pvUser, pExtent->pFile->pStorage, 5749 VMDK_SECTOR2BYTE(uSectorExtentRel),5750 (uint8_t *)paSegCurrent->pvSeg + uOffsetInCurrentSegment,5751 cbToRead, &pTask);5749 VMDK_SECTOR2BYTE(uSectorExtentRel), 5750 (uint8_t *)paSegCurrent->pvSeg + uOffsetInCurrentSegment, 5751 cbToRead, &pTask); 5752 5752 if (RT_FAILURE(rc)) 5753 5753 { … … 5840 5840 unsigned cTasksToSubmit = 0; 5841 5841 PPDMDATASEG paSegCurrent = paSeg; 5842 unsignedcbLeftInCurrentSegment = paSegCurrent->cbSeg;5843 unsigneduOffsetInCurrentSegment = 0;5842 size_t cbLeftInCurrentSegment = paSegCurrent->cbSeg; 5843 size_t uOffsetInCurrentSegment = 0; 5844 5844 5845 5845 AssertPtr(pImage); … … 5856 5856 while (cbWrite && cSeg) 5857 5857 { 5858 unsignedcbToWrite;5858 size_t cbToWrite; 5859 5859 uint64_t uSectorExtentRel; 5860 5860
Note:
See TracChangeset
for help on using the changeset viewer.