- Timestamp:
- Aug 1, 2007 3:50:59 PM (17 years ago)
- Location:
- trunk/src/VBox/HostServices/SharedFolders
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostServices/SharedFolders/testcase/tstShflCase.cpp
r3970 r3972 272 272 if (*src == RTPATH_DELIMITER) 273 273 { 274 pszWildCardComponent = src; 275 *pszWildCardComponent = 0; 274 bool fHaveWildcards = false; 275 char *temp = src; 276 277 while(*temp) 278 { 279 char uc = *temp; 280 /** @todo should depend on the guest OS */ 281 if (uc == '*' || uc == '?' || uc == '>' || uc == '<' || uc == '"') 282 { 283 fHaveWildcards = true; 284 break; 285 } 286 temp++; 287 } 288 289 if (fHaveWildcards) 290 { 291 pszWildCardComponent = src; 292 *pszWildCardComponent = 0; 293 } 276 294 } 277 295 } … … 357 375 358 376 } 359 if (fWildCard) 360 { 361 Assert(pszWildCardComponent); 377 if (pszWildCardComponent) 362 378 *pszWildCardComponent = RTPATH_DELIMITER; 363 }364 379 365 380 if (VBOX_SUCCESS(rc)) … … 386 401 testCase(szTest, true); 387 402 strcpy(szTest, "c:\\TEST dir\\subDiR\\"); 388 testCase(szTest );403 testCase(szTest ,true); 389 404 strcpy(szTest, "c:\\test dir\\SUBDIR\\"); 390 405 testCase(szTest); -
trunk/src/VBox/HostServices/SharedFolders/vbsf.cpp
r3970 r3972 325 325 if (*src == RTPATH_DELIMITER) 326 326 { 327 pszWildCardComponent = src; 328 *pszWildCardComponent = 0; 327 bool fHaveWildcards = false; 328 char *temp = src; 329 330 while(*temp) 331 { 332 char uc = *temp; 333 if (uc == '*' || uc == '?' || uc == '>' || uc == '<' || uc == '"') 334 { 335 fHaveWildcards = true; 336 break; 337 } 338 temp++; 339 } 340 341 if (fHaveWildcards) 342 { 343 pszWildCardComponent = src; 344 *pszWildCardComponent = 0; 345 } 329 346 } 330 347 } … … 410 427 411 428 } 412 if (fWildCard) 413 { 414 Assert(pszWildCardComponent); 429 if (pszWildCardComponent) 415 430 *pszWildCardComponent = RTPATH_DELIMITER; 416 }417 431 } 418 432 *ppszFullPath = pszFullPath;
Note:
See TracChangeset
for help on using the changeset viewer.