Subversion Repositories Games.Chess Giants

Rev

Rev 177 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 177 Rev 194
Line 71... Line 71...
71
   pipe->descriptors[RD] = _open_osfhandle ((intptr_t) hStdIO[IT_TO_ME][RD], _O_BINARY);
71
   pipe->descriptors[RD] = _open_osfhandle ((intptr_t) hStdIO[IT_TO_ME][RD], _O_BINARY);
72
   pipe->descriptors[WR] = _open_osfhandle ((intptr_t) hStdIO[ME_TO_IT][WR], _O_BINARY | _O_APPEND);
72
   pipe->descriptors[WR] = _open_osfhandle ((intptr_t) hStdIO[ME_TO_IT][WR], _O_BINARY | _O_APPEND);
73
 
73
 
74
   // spawn the child process with redirected input and output
74
   // spawn the child process with redirected input and output
75
   memset (&startup_info, 0, sizeof (startup_info));
75
   memset (&startup_info, 0, sizeof (startup_info));
76
   startup_info.cb = sizeof (STARTUPINFOA);
76
   startup_info.cb = sizeof (STARTUPINFO);
77
   startup_info.dwFlags = STARTF_USESTDHANDLES;
77
   startup_info.dwFlags = STARTF_USESTDHANDLES;
78
   startup_info.hStdInput = hStdIO[ME_TO_IT][RD];
78
   startup_info.hStdInput = hStdIO[ME_TO_IT][RD];
79
   startup_info.hStdOutput = hStdIO[IT_TO_ME][WR];
79
   startup_info.hStdOutput = hStdIO[IT_TO_ME][WR];
80
   startup_info.hStdError = hStdIO[IT_TO_ME][WR];
80
   startup_info.hStdError = hStdIO[IT_TO_ME][WR];
81
   GetCurrentDirectory (WCHAR_SIZEOF (current_path), current_path);
81
   GetCurrentDirectory (WCHAR_SIZEOF (current_path), current_path);