Changeset 7275 in vbox for trunk/src/VBox
- Timestamp:
- Mar 4, 2008 1:39:44 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Storage/VDIHDDCore.cpp
r7231 r7275 374 374 goto out; 375 375 } 376 pImage->File = File; 376 377 377 378 cbTotal = pImage->offStartData … … 397 398 * effective than expanding file by write operations. 398 399 */ 399 rc = RTFileSetSize( pImage->File, cbTotal);400 rc = RTFileSetSize(File, cbTotal); 400 401 } 401 402 else … … 414 415 415 416 /* Write pre-header. */ 416 rc = RTFileWriteAt( pImage->File, 0, &pImage->PreHeader, sizeof(pImage->PreHeader), NULL);417 rc = RTFileWriteAt(File, 0, &pImage->PreHeader, sizeof(pImage->PreHeader), NULL); 417 418 if (VBOX_FAILURE(rc)) 418 419 { … … 422 423 423 424 /* Write header. */ 424 rc = RTFileWriteAt( pImage->File, sizeof(pImage->PreHeader), &pImage->Header.u.v1plus, sizeof(pImage->Header.u.v1plus), NULL);425 rc = RTFileWriteAt(File, sizeof(pImage->PreHeader), &pImage->Header.u.v1plus, sizeof(pImage->Header.u.v1plus), NULL); 425 426 if (VBOX_FAILURE(rc)) 426 427 { … … 429 430 } 430 431 431 rc = RTFileWriteAt( pImage->File, pImage->offStartBlocks,432 rc = RTFileWriteAt(File, pImage->offStartBlocks, 432 433 pImage->paBlocks, 433 434 getImageBlocks(&pImage->Header) * sizeof(VDIIMAGEBLOCKPOINTER), … … 464 465 unsigned cbChunk = (unsigned)RT_MIN(cbFill, cbBuf); 465 466 466 rc = RTFileWriteAt( pImage->File, pImage->offStartData + uOff,467 rc = RTFileWriteAt(File, pImage->offStartData + uOff, 467 468 pvBuf, cbChunk, NULL); 468 469 if (VBOX_FAILURE(rc))
Note:
See TracChangeset
for help on using the changeset viewer.