diff --git a/src/Prototype.cpp b/src/Prototype.cpp index afb18c6..70c4d44 100644 --- a/src/Prototype.cpp +++ b/src/Prototype.cpp @@ -504,7 +504,7 @@ struct Prototype : Module { (void) std::system(command.c_str()); #elif defined ARCH_WIN std::string command = editorPath + " \"" + path + "\""; - std::wstring commandW = string::toWstring(command); + std::wstring commandW = string::UTF8toUTF16(command); STARTUPINFOW startupInfo; std::memset(&startupInfo, 0, sizeof(startupInfo)); startupInfo.cb = sizeof(startupInfo);