equal
deleted
inserted
replaced
4415 if (search_path == NULL) { |
4415 if (search_path == NULL) { |
4416 errno = ENOMEM; |
4416 errno = ENOMEM; |
4417 return false; |
4417 return false; |
4418 } |
4418 } |
4419 strcpy(search_path, path); |
4419 strcpy(search_path, path); |
|
4420 os::native_path(search_path); |
4420 // Append "*", or possibly "\\*", to path |
4421 // Append "*", or possibly "\\*", to path |
4421 if (path[1] == ':' && |
4422 if (search_path[1] == ':' && |
4422 (path[2] == '\0' || |
4423 (search_path[2] == '\0' || |
4423 (path[2] == '\\' && path[3] == '\0'))) { |
4424 (search_path[2] == '\\' && search_path[3] == '\0'))) { |
4424 // No '\\' needed for cases like "Z:" or "Z:\" |
4425 // No '\\' needed for cases like "Z:" or "Z:\" |
4425 strcat(search_path, "*"); |
4426 strcat(search_path, "*"); |
4426 } |
4427 } |
4427 else { |
4428 else { |
4428 strcat(search_path, "\\*"); |
4429 strcat(search_path, "\\*"); |