- Timestamp:
- Oct 12, 2018 6:47:50 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-server/MediumIOImpl.cpp
r74822 r74824 268 268 do 269 269 { 270 size_t cbThisWrite = RT_MIN(pStreamFile->cbFile - pStreamFile->uOffsetLast, sizeof(g_abRTZero64K));270 size_t cbThisWrite = sizeof(g_abRTZero64K); 271 271 size_t cbWritten = 0; 272 273 if (pStreamFile->cbFile - pStreamFile->uOffsetLast < sizeof(g_abRTZero64K)) 274 cbThisWrite = (size_t)(pStreamFile->cbFile - pStreamFile->uOffsetLast); 272 275 273 276 rc = pStreamFile->pDataStream->i_write(&g_abRTZero64K[0], cbThisWrite, &cbWritten); … … 369 372 do 370 373 { 371 size_t cbThisWrite = RT_MIN(uOffset - pStreamFile->uOffsetLast, sizeof(g_abRTZero64K));374 size_t cbThisWrite = sizeof(g_abRTZero64K); 372 375 size_t cbWritten = 0; 376 377 if (uOffset - pStreamFile->uOffsetLast < sizeof(g_abRTZero64K)) 378 cbThisWrite = (size_t)(uOffset - pStreamFile->uOffsetLast); 373 379 374 380 rc = pStreamFile->pDataStream->i_write(&g_abRTZero64K[0], cbThisWrite, &cbWritten);
Note:
See TracChangeset
for help on using the changeset viewer.