From 0710085ae63dae1bccfdf25b74e55d7f53801371 Mon Sep 17 00:00:00 2001 From: Steve Russell <41975381+SteveRussell33@users.noreply.github.com> Date: Sat, 25 Feb 2023 15:21:23 +0000 Subject: [PATCH] Win build fix Thanks to @dizzisound https://github.com/VCVRack/VCV-Prototype/issues/66#issuecomment-1430090584 --- src/Prototype.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);