Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix for Unicode build on Windows. #7

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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