Changeset 69758 in vbox for trunk/src/VBox/GuestHost/DragAndDrop
- Timestamp:
- Nov 19, 2017 3:23:57 PM (7 years ago)
- svn:sync-xref-src-repo-rev:
- 119158
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/GuestHost/DragAndDrop/DnDURIList.cpp
r69755 r69758 128 128 { 129 129 rc = addEntry(pcszSrcPath, &pcszDstPath[cchDstBase], fFlags); 130 131 130 if (RT_SUCCESS(rc)) 132 131 { … … 135 134 if (RT_SUCCESS(rc)) 136 135 { 136 size_t cbDirEntry = 0; 137 PRTDIRENTRYEX pDirEntry = NULL; 137 138 do 138 139 { 139 RTDIRENTRY DirEntry;140 rc = RTDirRead (hDir, &DirEntry, NULL);140 /* Retrieve the next directory entry. */ 141 rc = RTDirReadExA(hDir, &pDirEntry, &cbDirEntry, RTFSOBJATTRADD_NOTHING, RTPATH_F_ON_LINK); 141 142 if (RT_FAILURE(rc)) 142 143 { … … 145 146 break; 146 147 } 147 /** @todo r=bird: you really need to read the documentation! I already 148 * pointed out that this isn't goint to work in the guest control 149 * code. sigh. */ 150 151 switch (DirEntry.enmType) 148 149 switch (pDirEntry->Info.Attr.fMode & RTFS_TYPE_MASK) 152 150 { 153 case RT DIRENTRYTYPE_DIRECTORY:151 case RTFS_TYPE_DIRECTORY: 154 152 { 155 153 /* Skip "." and ".." entries. */ 156 if (RTDirEntry IsStdDotLink(&DirEntry))154 if (RTDirEntryExIsStdDotLink(pDirEntry)) 157 155 break; 158 156 159 char *pszSrc = RTPathJoinA(pcszSrcPath, DirEntry.szName);157 char *pszSrc = RTPathJoinA(pcszSrcPath, pDirEntry->szName); 160 158 if (pszSrc) 161 159 { 162 char *pszDst = RTPathJoinA(pcszDstPath, DirEntry.szName);160 char *pszDst = RTPathJoinA(pcszDstPath, pDirEntry->szName); 163 161 if (pszDst) 164 162 { … … 176 174 } 177 175 178 case RT DIRENTRYTYPE_FILE:176 case RTFS_TYPE_FILE: 179 177 { 180 char *pszSrc = RTPathJoinA(pcszSrcPath, DirEntry.szName);178 char *pszSrc = RTPathJoinA(pcszSrcPath, pDirEntry->szName); 181 179 if (pszSrc) 182 180 { 183 char *pszDst = RTPathJoinA(pcszDstPath, DirEntry.szName);181 char *pszDst = RTPathJoinA(pcszDstPath, pDirEntry->szName); 184 182 if (pszDst) 185 183 { … … 195 193 break; 196 194 } 197 case RT DIRENTRYTYPE_SYMLINK:195 case RTFS_TYPE_SYMLINK: 198 196 { 199 197 if (fFlags & DNDURILIST_FLAGS_RESOLVE_SYMLINKS) … … 233 231 } while (RT_SUCCESS(rc)); 234 232 233 RTDirReadExAFree(&pDirEntry, &cbDirEntry); 235 234 RTDirClose(hDir); 236 235 }
Note:
See TracChangeset
for help on using the changeset viewer.