Changeset 18460 in vbox for trunk/src/VBox/HostServices
- Timestamp:
- Mar 28, 2009 4:56:59 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostServices/SharedFolders/testcase/tstShflCase.cpp
r14062 r18460 133 133 if (iDirFile == RT_ELEMENTS(pszDirListC)) 134 134 return VERR_NO_MORE_FILES; 135 pDirEntry->cbName = strlen(pszDirListC[iDirFile]);135 pDirEntry->cbName = (uint16_t)strlen(pszDirListC[iDirFile]); 136 136 strcpy(pDirEntry->szName, pszDirListC[iDirFile++]); 137 137 break; … … 139 139 if (iDirFile == RT_ELEMENTS(pszDirListTestdir)) 140 140 return VERR_NO_MORE_FILES; 141 pDirEntry->cbName = strlen(pszDirListTestdir[iDirFile]);141 pDirEntry->cbName = (uint16_t)strlen(pszDirListTestdir[iDirFile]); 142 142 strcpy(pDirEntry->szName, pszDirListTestdir[iDirFile++]); 143 143 break; … … 145 145 if (iDirFile == RT_ELEMENTS(pszDirListSUBDIR)) 146 146 return VERR_NO_MORE_FILES; 147 pDirEntry->cbName = strlen(pszDirListSUBDIR[iDirFile]);147 pDirEntry->cbName = (uint16_t)strlen(pszDirListSUBDIR[iDirFile]); 148 148 strcpy(pDirEntry->szName, pszDirListSUBDIR[iDirFile++]); 149 149 break; … … 192 192 { 193 193 PRTDIRENTRYEX pDirEntry = NULL; 194 uint32_t cbDirEntry, cbComponent; 194 uint32_t cbDirEntry; 195 size_t cbComponent; 195 196 int rc = VERR_FILE_NOT_FOUND; 196 197 PRTDIR hSearch = 0; … … 274 275 { 275 276 /* strip off the last path component, that contains the wildcard(s) */ 276 uint32_tlen = strlen(pszFullPath);277 size_t len = strlen(pszFullPath); 277 278 char *src = pszFullPath + len - 1; 278 279 … … 311 312 if (rc == VERR_FILE_NOT_FOUND || rc == VERR_PATH_NOT_FOUND) 312 313 { 313 uint32_tlen = strlen(pszFullPath);314 size_t len = strlen(pszFullPath); 314 315 char *src = pszFullPath + len - 1; 315 316
Note:
See TracChangeset
for help on using the changeset viewer.