Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/cpp/subprocess/ProcessBuilder_windows.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ namespace subprocess {


PROCESS_INFORMATION piProcInfo = {0};
STARTUPINFO siStartInfo = {0};
STARTUPINFOA siStartInfo = {0};
BOOL bSuccess = FALSE;

siStartInfo.cb = sizeof(STARTUPINFO);
Expand Down Expand Up @@ -131,7 +131,7 @@ namespace subprocess {
process_flags |= CREATE_NEW_PROCESS_GROUP;
}
// Create the child process.
bSuccess = CreateProcess(program.c_str(),
bSuccess = CreateProcessA(program.c_str(),
(char*)args.c_str(), // command line
NULL, // process security attributes
NULL, // primary thread security attributes
Expand Down Expand Up @@ -171,4 +171,4 @@ namespace subprocess {

}

#endif
#endif