From 8d75f339b2e7a84447001a2f8389f2959a697798 Mon Sep 17 00:00:00 2001 From: EZ4Stephen Date: Tue, 2 Dec 2025 21:04:24 +0400 Subject: [PATCH] Change CreateProcess to CreateProcessA (Windows only) Fixes the following error: 'BOOL CreateProcessW(LPCWSTR,LPWSTR,LPSECURITY_ATTRIBUTES,LPSECURITY_ATTRIBUTES,BOOL,DWORD,LPVOID,LPCWSTR,LPSTARTUPINFOW,LPPROCESS_INFORMATION)': cannot convert argument 2 from 'char *' to 'LPWSTR' --- libs/pbd/system_exec.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/pbd/system_exec.cc b/libs/pbd/system_exec.cc index cc514a01d2..6a22bc326d 100644 --- a/libs/pbd/system_exec.cc +++ b/libs/pbd/system_exec.cc @@ -492,7 +492,7 @@ SystemExec::start (StdErrMode stderr_mode, const char * /*vfork_exec_wrapper*/) stdinP[0], stdoutP[1], stderrP[1] }; - success = CreateProcess(0, w_args, + success = CreateProcessA(0, w_args, 0, 0, /* bInheritHandles = */ TRUE, (CREATE_NO_WINDOW&0) | CREATE_UNICODE_ENVIRONMENT | (0&CREATE_NEW_CONSOLE), /*env = */ 0,