Changeset 3993 in vbox for trunk/src/VBox/HostServices
- Timestamp:
- Aug 2, 2007 9:29:34 AM (17 years ago)
- Location:
- trunk/src/VBox/HostServices/SharedFolders
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostServices/SharedFolders/testcase/tstShflCase.cpp
r3972 r3993 41 41 #undef Log 42 42 #define Log(a) printf a 43 #undef Log2 44 #define Log2 Log 43 45 44 46 #define RTPathQueryInfo rtPathQueryInfo … … 192 194 int rc = VERR_FILE_NOT_FOUND; 193 195 PRTDIR hSearch; 196 char szWildCard[4]; 197 198 Log2(("vbsfCorrectCasing: %s %s\n", pszFullPath, pszStartComponent)); 194 199 195 200 cbComponent = strlen(pszStartComponent); … … 208 213 *(pszStartComponent-1) = 0; 209 214 strcpy(pDirEntry->szName, pszFullPath); 210 strcat(pDirEntry->szName, "\\*"); 215 szWildCard[0] = RTPATH_DELIMITER; 216 szWildCard[1] = '*'; 217 szWildCard[2] = 0; 218 strcat(pDirEntry->szName, szWildCard); 219 211 220 rc = RTDirOpenFiltered (&hSearch, pDirEntry->szName, RTDIRFILTER_WINNT); 212 221 *(pszStartComponent-1) = RTPATH_DELIMITER; … … 230 239 continue; 231 240 } 241 242 Log2(("vbsfCorrectCasing: found %s\n", &pDirEntry->szName[0])); 232 243 if ( pDirEntry->cbName == cbComponent 233 244 && !RTStrICmp(pszStartComponent, &pDirEntry->szName[0])) -
trunk/src/VBox/HostServices/SharedFolders/vbsf.cpp
r3992 r3993 101 101 int rc = VERR_FILE_NOT_FOUND; 102 102 PRTDIR hSearch; 103 char szWildCard[4]; 103 104 104 105 Log2(("vbsfCorrectCasing: %s %s\n", pszFullPath, pszStartComponent)); … … 119 120 *(pszStartComponent-1) = 0; 120 121 strcpy(pDirEntry->szName, pszFullPath); 121 strcat(pDirEntry->szName, "\\*"); 122 szWildCard[0] = RTPATH_DELIMITER; 123 szWildCard[1] = '*'; 124 szWildCard[2] = 0; 125 strcat(pDirEntry->szName, szWildCard); 126 122 127 rc = RTDirOpenFiltered (&hSearch, pDirEntry->szName, RTDIRFILTER_WINNT); 123 128 *(pszStartComponent-1) = RTPATH_DELIMITER;
Note:
See TracChangeset
for help on using the changeset viewer.