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'
This commit is contained in:
EZ4Stephen 2025-12-02 21:04:24 +04:00 committed by GitHub
parent 6cb0676e4c
commit 8d75f339b2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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,