- Timestamp:
- Mar 31, 2008 12:05:47 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Storage/VDIHDDCore.cpp
r7275 r7652 366 366 vdiSetupImageDesc(pImage); 367 367 368 /* create file*/368 /* Create image file. */ 369 369 rc = RTFileOpen(&File, pImage->pszFilename, 370 370 RTFILE_O_READWRITE | RTFILE_O_CREATE | RTFILE_O_DENY_ALL); … … 381 381 if (enmType == VD_IMAGE_TYPE_FIXED) 382 382 { 383 /* check the free space on the disk and leave early if there is not384 * sufficient space available */383 /* Check the free space on the disk and leave early if there is not 384 * sufficient space available. */ 385 385 RTFOFF cbFree = 0; 386 386 rc = RTFsQuerySizes(pImage->pszFilename, NULL, &cbFree, NULL, NULL); … … 460 460 cbFill = (uint64_t)getImageBlocks(&pImage->Header) * pImage->cbTotalBlockData; 461 461 uOff = 0; 462 /* do loop to fill all image. */462 /* Write data to all image blocks. */ 463 463 while (uOff < cbFill) 464 464 { … … 711 711 PVDIIMAGEDESC pImage; 712 712 713 if ( ! pszFilename713 if ( !VALID_PTR(pszFilename) 714 714 || !*pszFilename) 715 715 { … … 801 801 802 802 /* Check remaining arguments. */ 803 if ( ! pszFilename803 if ( !VALID_PTR(pszFilename) 804 804 || !*pszFilename 805 805 || (enmType != VD_IMAGE_TYPE_NORMAL && enmType != VD_IMAGE_TYPE_FIXED)
Note:
See TracChangeset
for help on using the changeset viewer.