From ca9334f53b9456a517f8fa4a687e2d2a6cc1ca86 Mon Sep 17 00:00:00 2001 From: Yuqian Yang Date: Fri, 17 Oct 2025 22:57:30 +0800 Subject: Fix windows build. --- src/ui/ThemeResourceDictionary.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ui/ThemeResourceDictionary.cpp') diff --git a/src/ui/ThemeResourceDictionary.cpp b/src/ui/ThemeResourceDictionary.cpp index 587a14c5..b9c7c284 100644 --- a/src/ui/ThemeResourceDictionary.cpp +++ b/src/ui/ThemeResourceDictionary.cpp @@ -9,7 +9,7 @@ namespace cru::ui { std::unique_ptr ThemeResourceDictionary::FromFile( std::filesystem::path file_path) { - io::CFileStream stream(file_path.c_str(), "r"); + io::CFileStream stream(file_path.generic_string().c_str(), "r"); auto xml_string = stream.ReadToEndAsUtf8String(); auto parser = xml::XmlParser(xml_string); return std::make_unique(parser.Parse(), false); -- cgit v1.2.3