VirtualBox

Changeset 33433 in vbox for trunk


Ignore:
Timestamp:
Oct 25, 2010 3:37:34 PM (14 years ago)
Author:
vboxsync
Message:

Main: fail with meaningful error message if medium path is not fully qualified; this is now reported in the GUI 'create disk' wizard, GUI still needs fixing

File:
1 edited

Legend:

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

    r33335 r33433  
    36523652
    36533653        // we must always have full paths now
    3654         Assert(RTPathHavePath(locationFull.c_str()));
     3654        if (!RTPathStartsWithRoot(locationFull.c_str()))
     3655            return setError(VBOX_E_FILE_ERROR,
     3656                            tr("The given path '%s' is not fully qualified"),
     3657                            locationFull.c_str());
    36553658
    36563659        /* detect the backend from the storage unit if importing */
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