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);