VirtualBox

Changeset 7652 in vbox for trunk/src


Ignore:
Timestamp:
Mar 31, 2008 12:05:47 PM (17 years ago)
Author:
vboxsync
Message:

Tiny validity check and comment cleanup in new VDI implementation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Storage/VDIHDDCore.cpp

    r7275 r7652  
    366366    vdiSetupImageDesc(pImage);
    367367
    368     /* create file */
     368    /* Create image file. */
    369369    rc = RTFileOpen(&File, pImage->pszFilename,
    370370                    RTFILE_O_READWRITE | RTFILE_O_CREATE | RTFILE_O_DENY_ALL);
     
    381381    if (enmType == VD_IMAGE_TYPE_FIXED)
    382382    {
    383         /* check the free space on the disk and leave early if there is not
    384          * sufficient space available */
     383        /* Check the free space on the disk and leave early if there is not
     384         * sufficient space available. */
    385385        RTFOFF cbFree = 0;
    386386        rc = RTFsQuerySizes(pImage->pszFilename, NULL, &cbFree, NULL, NULL);
     
    460460        cbFill = (uint64_t)getImageBlocks(&pImage->Header) * pImage->cbTotalBlockData;
    461461        uOff = 0;
    462         /* do loop to fill all image. */
     462        /* Write data to all image blocks. */
    463463        while (uOff < cbFill)
    464464        {
     
    711711    PVDIIMAGEDESC pImage;
    712712
    713     if (   !pszFilename
     713    if (   !VALID_PTR(pszFilename)
    714714        || !*pszFilename)
    715715    {
     
    801801
    802802    /* Check remaining arguments. */
    803     if (   !pszFilename
     803    if (   !VALID_PTR(pszFilename)
    804804        || !*pszFilename
    805805        || (enmType != VD_IMAGE_TYPE_NORMAL && enmType != VD_IMAGE_TYPE_FIXED)
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette