VirtualBox

Changeset 104312 in vbox for trunk


Ignore:
Timestamp:
Apr 12, 2024 10:20:36 AM (9 months ago)
Author:
vboxsync
Message:

Shared Clipboard/Transfers: Skip the slash from the actual root path when adding a transfer entry in ShClTransferRootsInitFromStringListEx(). bugref:9437

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/GuestHost/SharedClipboard/clipboard-transfers.cpp

    r104310 r104312  
    19281928                        /* Calculate the relative path within the root path. */
    19291929                        Assert(RTStrNLen(pszPathCur, RTPATH_MAX) >= cchPathRootAbs); /* Sanity. */
    1930                         const char *pszPathRelToRoot = pszPathCur + cchPathRootAbs;
     1930                        const char *pszPathRelToRoot = pszPathCur + cchPathRootAbs + 1 /* Skip slash */;
    19311931                        if (    pszPathRelToRoot
    19321932                            && *pszPathRelToRoot != '\0')
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