VirtualBox

Changeset 76589 in vbox for trunk/src/bldprogs


Ignore:
Timestamp:
Jan 1, 2019 8:56:07 AM (6 years ago)
Author:
vboxsync
Message:

IPRT: Attempted to address some the more obvious shortcomings of RTPathCalcRelative. Had to add a parameter that clearifies whether the from path is a file (VHD usage) or directory (rest).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bldprogs/scmrw.cpp

    r76572 r76589  
    28962896        else
    28972897            rc = RTPathCalcRelative(&szNormalized[cchNormalized], sizeof(szNormalized) - cchNormalized,
    2898                                     pSettings->pszGuardRelativeToDir, pState->pszFilename);
     2898                                    pSettings->pszGuardRelativeToDir, false /*fFromFile*/, pState->pszFilename);
    28992899        if (RT_FAILURE(rc))
    29002900            return ScmError(pState, rc, "Error calculating guard prefix (RTPathCalcRelative): %Rrc\n", 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