Changeset 15785 in vbox for trunk/src/VBox/Devices/Storage/VDIHDDCore.cpp
- Timestamp:
- Jan 5, 2009 12:34:36 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Storage/VDIHDDCore.cpp
r15673 r15785 1070 1070 { 1071 1071 rc = VERR_VD_IMAGE_READ_ONLY; 1072 goto out ;1072 goto outfail; 1073 1073 } 1074 1074 … … 1076 1076 { 1077 1077 rc = VERR_INVALID_PARAMETER; 1078 goto out ;1078 goto outfail; 1079 1079 } 1080 1080 … … 1121 1121 rc = RTFileWriteAt(pImage->File, u64Offset, pvBuf, cbToWrite, NULL); 1122 1122 if (RT_FAILURE(rc)) 1123 goto out ;1123 goto outfail; 1124 1124 pImage->paBlocks[uBlock] = cBlocksAllocated; 1125 1125 setImageBlocksAllocated(&pImage->Header, cBlocksAllocated + 1); … … 1127 1127 rc = vdiUpdateBlockInfo(pImage, uBlock); 1128 1128 if (RT_FAILURE(rc)) 1129 goto out ;1129 goto outfail; 1130 1130 1131 1131 *pcbPreRead = 0; … … 1148 1148 rc = RTFileWriteAt(pImage->File, u64Offset, pvBuf, cbToWrite, NULL); 1149 1149 } 1150 1151 out: 1150 1152 if (pcbWriteProcess) 1151 1153 *pcbWriteProcess = cbToWrite; 1152 1154 1153 out :1155 outfail: 1154 1156 LogFlowFunc(("returns %Rrc\n", rc)); 1155 1157 return rc;
Note:
See TracChangeset
for help on using the changeset viewer.