VirtualBox

Ignore:
Timestamp:
Nov 10, 2010 3:25:06 PM (14 years ago)
Author:
vboxsync
Message:

Main: make saved state paths relative to machines again (trunk regression)

File:
1 edited

Legend:

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

    r33921 r33934  
    57405740 * if it is a subdirectory thereof, or simply copying it otherwise.
    57415741 *
    5742  * @param strSource Path to evalue and copy.
     5742 * @param strSource Path to evaluate and copy.
    57435743 * @param strTarget Buffer to receive target path.
    57445744 *
     
    57595759    if (RTPathStartsWith(strSource.c_str(), strTarget.c_str()))
    57605760        // is relative: then append what's left
    5761         strTarget.append(strSource.c_str() + strTarget.length());     // include '/'
     5761        strTarget = strSource.substr(strTarget.length() + 1); // skip '/'
    57625762    else
    57635763        // is not relative: then overwrite
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