Fixing path issues for host FS.

This commit is contained in:
Ben Vanik
2015-02-12 21:52:46 -08:00
parent f8c7c97d54
commit ea5175cab5
3 changed files with 10 additions and 6 deletions

View File

@@ -74,9 +74,9 @@ X_STATUS HostPathEntry::QueryDirectory(XDirectoryInfo* out_info, size_t length,
if (handle == INVALID_HANDLE_VALUE) {
std::wstring target_path = local_path_;
if (!file_name) {
target_path += L"*";
target_path = poly::join_paths(target_path, L"*");
} else {
target_path += poly::to_wstring(file_name);
target_path = poly::join_paths(target_path, poly::to_wstring(file_name));
}
handle = find_file_ = FindFirstFile(target_path.c_str(), &ffd);
if (handle == INVALID_HANDLE_VALUE) {