diff --git a/src/util/cd_image_m3u.cpp b/src/util/cd_image_m3u.cpp index e4d3a7a92..2fb2cc839 100644 --- a/src/util/cd_image_m3u.cpp +++ b/src/util/cd_image_m3u.cpp @@ -99,7 +99,8 @@ bool CDImageM3u::Open(const char* path, bool apply_patches, Error* error) continue; Entry entry; - std::string entry_filename(line.begin() + start_offset, line.begin() + end_offset + 1); + std::string entry_filename = + Path::ToNativePath(std::string_view(line.begin() + start_offset, line.begin() + end_offset + 1)); entry.title = Path::GetFileTitle(entry_filename); if (!Path::IsAbsolute(entry_filename)) entry.filename = Path::BuildRelativePath(path, entry_filename);