Fix compile error.

This commit is contained in:
Relintai 2023-09-10 15:12:26 +02:00
parent 84ccfb340a
commit 2199cba049

View File

@ -53,10 +53,8 @@ Error SubProcessWindows::start() {
String path = _executable_path.replace("/", "\\"); String path = _executable_path.replace("/", "\\");
String cmdline = _quote_command_line_argument(path); String cmdline = _quote_command_line_argument(path);
const List<String>::Element *I = _arguments.front(); for (int i = 0; i < _arguments.size(); ++i) {
while (I) { cmdline += " " + _quote_command_line_argument(_arguments[i]);
cmdline += " " + _quote_command_line_argument(I->get());
I = I->next();
} }
ZeroMemory(&_process_info.si, sizeof(_process_info.si)); ZeroMemory(&_process_info.si, sizeof(_process_info.si));
@ -324,7 +322,6 @@ void SubProcessWindows::_append_to_pipe(char *p_bytes, int p_size) {
SubProcessWindows::SubProcessWindows() : SubProcessWindows::SubProcessWindows() :
SubProcess() { SubProcess() {
_pipe_handles[0] = NULL; _pipe_handles[0] = NULL;
_pipe_handles[1] = NULL; _pipe_handles[1] = NULL;