VirtualBox

Changeset 17578 in vbox for trunk


Ignore:
Timestamp:
Mar 9, 2009 2:38:03 PM (16 years ago)
Author:
vboxsync
Message:

OVF: fixes for empty disks creation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/ApplianceImpl.cpp

    r17577 r17578  
    21692169                        ComPtr<IHardDisk> dstHdVBox;
    21702170                        /* If strHref is empty we have to create a new file */
    2171                         if (di.strHref.c_str()[0] == 0)
     2171                        if (di.strHref.isNull() ||
     2172                            di.strHref.c_str()[0] == 0)
    21722173                        {
    21732174                            /* Which format to use? */
     
    21812182
    21822183                            /* Create a dynamic growing disk image with the given capacity */
    2183                             ComPtr<IProgress> progress;
    21842184                            rc = dstHdVBox->CreateDynamicStorage(di.iCapacity / _1M, progress.asOutParam());
    21852185                            if (FAILED(rc)) throw rc;
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