mirror of
https://github.com/sam-astro/Z-Sharp.git
synced 2025-12-11 16:22:12 +00:00
Fix invalid conversion from std::string to const char *
This commit is contained in:
parent
d2e9a95d08
commit
c7a6e17d6c
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user