VirtualBox

Changeset 81290 in vbox


Ignore:
Timestamp:
Oct 15, 2019 4:53:56 PM (5 years ago)
Author:
vboxsync
Message:

Shared Clipboard/Transfers: Build fix.

Location:
trunk/src/VBox
Files:
2 edited

Legend:

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

    r81260 r81290  
    16671667    LogFlowFuncLeaveRC(rc);
    16681668    return rc;
    1669 }
    1670 
    1671 /**
    1672  * Translates an absolute path to a relative one.
    1673  *
    1674  * @returns Translated, allocated path on success, or NULL on failure.
    1675  *          Must be free'd with RTStrFree().
    1676  * @param   pszPath             Absolute path to translate.
    1677  */
    1678 static char *sharedClipboardPathTranslate(const char *pszPath)
    1679 {
    1680     AssertPtrReturn(pszPath, NULL);
    1681 
    1682     LogFlowFunc(("pszPath=%s\n", pszPath));
    1683 
    1684     char *pszPathTranslated = NULL;
    1685 
    1686     char *pszSrcPath = RTStrDup(pszPath);
    1687     if (pszSrcPath)
    1688     {
    1689         size_t cbSrcPathLen = RTPathStripTrailingSlash(pszSrcPath);
    1690         if (cbSrcPathLen)
    1691         {
    1692             char *pszFileName = RTPathFilename(pszSrcPath);
    1693             if (pszFileName)
    1694             {
    1695                 Assert(pszFileName >= pszSrcPath);
    1696                 size_t cchDstBase = pszFileName - pszSrcPath;
    1697 
    1698                 pszPathTranslated = RTStrDup(&pszSrcPath[cchDstBase]);
    1699 
    1700                 LogFlowFunc(("pszSrcPath=%s, pszFileName=%s -> pszPathTranslated=%s\n",
    1701                              pszSrcPath, pszFileName, pszPathTranslated));
    1702             }
    1703         }
    1704 
    1705         RTStrFree(pszSrcPath);
    1706     }
    1707 
    1708     return pszPathTranslated;
    17091669}
    17101670
  • trunk/src/VBox/HostServices/SharedClipboard/VBoxSharedClipboardSvc-transfers.cpp

    r81286 r81290  
    21922192 *
    21932193 * @returns VBox status code.
    2194  * @param   uMode               Transfer mode to set.
     2194 * @param   fMode               Transfer mode to set.
    21952195 */
    21962196int shclSvcTransferModeSet(uint32_t fMode)
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