From c7a6e17d6c9ab87c06cdd12fc416999120ae8a60 Mon Sep 17 00:00:00 2001 From: sam-astro <77079540+sam-astro@users.noreply.github.com> Date: Sat, 15 Jan 2022 22:27:40 -0500 Subject: [PATCH] Fix invalid conversion from std::string to const char * --- Slang/Main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Slang/Main.cpp b/Slang/Main.cpp index ae07f33..1bcee9b 100644 --- a/Slang/Main.cpp +++ b/Slang/Main.cpp @@ -672,7 +672,7 @@ int main(int argc, char* argv[]) std::wstring wide = converter.from_bytes(projectDirectory); #if defined(__unix__) - chdir(projectDirectory); + chdir(projectDirectory.c_str()); #elif defined(_MSC_VER) LPCWSTR s = wide.c_str(); SetCurrentDirectory(s);