VirtualBox

Changeset 37483 in vbox for trunk/src/VBox/Storage/VMDK.cpp


Ignore:
Timestamp:
Jun 16, 2011 7:49:36 AM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
72301
Message:

Storage/{VDI,VMDK}: Refuse to create an image with an invalid image type (e.g. Split2G for VDI images)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Storage/VMDK.cpp

    r37246 r37483  
    57775777        pfnProgress = pCbProgress->pfnProgress;
    57785778        pvUser = pIfProgress->pvUser;
     5779    }
     5780
     5781    /* Check the image flags. */
     5782    if ((uImageFlags & ~VD_VMDK_IMAGE_FLAGS_MASK) != 0)
     5783    {
     5784        rc = VERR_VD_INVALID_TYPE;
     5785        goto out;
    57795786    }
    57805787
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