Changeset 85026 in vbox for trunk/src/VBox/GuestHost
- Timestamp:
- Jul 1, 2020 2:27:44 PM (5 years ago)
- svn:sync-xref-src-repo-rev:
- 138927
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/GuestHost/DragAndDrop/DnDDroppedFiles.cpp
r84983 r85026 149 149 do 150 150 { 151 char pszDropDir[RTPATH_MAX];152 RTStrPrintf( pszDropDir, sizeof(pszDropDir), "%s", pszPath);151 char szDropDir[RTPATH_MAX]; 152 RTStrPrintf(szDropDir, sizeof(szDropDir), "%s", pszPath); 153 153 154 154 /** @todo On Windows we also could use the registry to override … … 157 157 158 158 /* 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? */ 160 160 if (RT_FAILURE(rc)) 161 161 break; 162 162 163 163 /* 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); 167 167 if (RT_FAILURE(rc)) 168 168 break; … … 183 183 break; 184 184 185 rc = RTPathAppend( pszDropDir, sizeof(pszDropDir), pszTime);185 rc = RTPathAppend(szDropDir, sizeof(szDropDir), pszTime); 186 186 if (RT_FAILURE(rc)) 187 187 break; 188 188 189 189 /* 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, '-'); 191 191 if (RT_SUCCESS(rc)) 192 192 { 193 193 RTDIR hDir; 194 rc = RTDirOpen(&hDir, pszDropDir);194 rc = RTDirOpen(&hDir, szDropDir); 195 195 if (RT_SUCCESS(rc)) 196 196 { 197 197 this->m_hDir = hDir; 198 this->m_strPathAbs = pszDropDir;198 this->m_strPathAbs = szDropDir; 199 199 this->m_fOpen = fFlags; 200 200 }
Note:
See TracChangeset
for help on using the changeset viewer.