VirtualBox

Changeset 85026 in vbox for trunk/src/VBox/GuestHost


Ignore:
Timestamp:
Jul 1, 2020 2:27:44 PM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
138927
Message:

DnD/DroppedFiles: Renaming.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/GuestHost/DragAndDrop/DnDDroppedFiles.cpp

    r84983 r85026  
    149149    do
    150150    {
    151         char pszDropDir[RTPATH_MAX];
    152         RTStrPrintf(pszDropDir, sizeof(pszDropDir), "%s", pszPath);
     151        char szDropDir[RTPATH_MAX];
     152        RTStrPrintf(szDropDir, sizeof(szDropDir), "%s", pszPath);
    153153
    154154        /** @todo On Windows we also could use the registry to override
     
    157157
    158158        /* Append our base drop directory. */
    159         rc = RTPathAppend(pszDropDir, sizeof(pszDropDir), "VirtualBox Dropped Files"); /** @todo Make this tag configurable? */
     159        rc = RTPathAppend(szDropDir, sizeof(szDropDir), "VirtualBox Dropped Files"); /** @todo Make this tag configurable? */
    160160        if (RT_FAILURE(rc))
    161161            break;
    162162
    163163        /* Create it when necessary. */
    164         if (!RTDirExists(pszDropDir))
    165         {
    166             rc = RTDirCreateFullPath(pszDropDir, RTFS_UNIX_IRWXU);
     164        if (!RTDirExists(szDropDir))
     165        {
     166            rc = RTDirCreateFullPath(szDropDir, RTFS_UNIX_IRWXU);
    167167            if (RT_FAILURE(rc))
    168168                break;
     
    183183            break;
    184184
    185         rc = RTPathAppend(pszDropDir, sizeof(pszDropDir), pszTime);
     185        rc = RTPathAppend(szDropDir, sizeof(szDropDir), pszTime);
    186186        if (RT_FAILURE(rc))
    187187            break;
    188188
    189189        /* Create it (only accessible by the current user) */
    190         rc = RTDirCreateUniqueNumbered(pszDropDir, sizeof(pszDropDir), RTFS_UNIX_IRWXU, 3, '-');
     190        rc = RTDirCreateUniqueNumbered(szDropDir, sizeof(szDropDir), RTFS_UNIX_IRWXU, 3, '-');
    191191        if (RT_SUCCESS(rc))
    192192        {
    193193            RTDIR hDir;
    194             rc = RTDirOpen(&hDir, pszDropDir);
     194            rc = RTDirOpen(&hDir, szDropDir);
    195195            if (RT_SUCCESS(rc))
    196196            {
    197197                this->m_hDir       = hDir;
    198                 this->m_strPathAbs = pszDropDir;
     198                this->m_strPathAbs = szDropDir;
    199199                this->m_fOpen      = fFlags;
    200200            }
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette