Changeset 104619 in vbox for trunk/src/VBox
- Timestamp:
- May 14, 2024 6:54:38 AM (7 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/bootsectors/VBoxBs2Linker.cpp
r98103 r104619 159 159 /* Copy the input files to the output file, with sector padding applied. */ 160 160 int rcExit = 0; 161 size_t off = 0;162 161 for (unsigned i = 0; i < cInputs && rcExit == 0; i++) 163 162 { … … 192 191 193 192 /* Write the block to the output file. */ 194 if (fwrite(abBuf, sizeof(uint8_t), cbRead, pOutput) == cbRead) 195 off += cbRead; 196 else 193 if (fwrite(abBuf, sizeof(uint8_t), cbRead, pOutput) != cbRead) 197 194 { 198 195 fprintf(stderr, "error: fwrite failed\n");
Note:
See TracChangeset
for help on using the changeset viewer.