Skip to content

Commit 011d0c3

Browse files
fix windows crash
1 parent a1dd83d commit 011d0c3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

trigger-control.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ void create_config_path_dir()
4848
#endif
4949
#ifdef _WIN32
5050
// lmao windows with the wide char paths
51-
std::wstring wc(std::string(CONFIG_PATH).begin(), std::string(CONFIG_PATH).end());
51+
std::string path = std::string(CONFIG_PATH);
52+
std::wstring wc(path.begin(), path.end());
5253
if (!std::filesystem::is_directory(wc))
5354
std::filesystem::create_directory(wc);
5455
#endif

0 commit comments

Comments
 (0)