diff options
Diffstat (limited to '')
| -rw-r--r-- | src/common/file_util.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/file_util.cpp b/src/common/file_util.cpp index a286b9341..7752c0421 100644 --- a/src/common/file_util.cpp +++ b/src/common/file_util.cpp | |||
| @@ -239,7 +239,7 @@ bool ForeachDirectoryEntry(u64* num_entries_out, const std::string& directory, | |||
| 239 | } | 239 | } |
| 240 | // windows loop | 240 | // windows loop |
| 241 | do { | 241 | do { |
| 242 | const std::string virtual_name = std::filesystem::path(ffd.cFileName).string(); | 242 | const std::string virtual_name(Common::UTF16ToUTF8(ffd.cFileName)); |
| 243 | #else | 243 | #else |
| 244 | DIR* dirp = opendir(directory.c_str()); | 244 | DIR* dirp = opendir(directory.c_str()); |
| 245 | if (!dirp) | 245 | if (!dirp) |