Rev 32 | Rev 39 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 32 | Rev 33 | ||
---|---|---|---|
Line 37... | Line 37... | ||
37 | hChessEngineStdoutRd = NULL; |
37 | hChessEngineStdoutRd = NULL; |
38 | hChessEngineStdoutWr = NULL; |
38 | hChessEngineStdoutWr = NULL; |
39 | player->wants_hint = false; |
39 | player->wants_hint = false; |
40 | 40 | ||
41 | // build the chess engine module path and pathname |
41 | // build the chess engine module path and pathname |
42 | swprintf_s (chessenginemodule_path, WCHAR_SIZEOF (chessenginemodule_path), L"%s/ |
42 | swprintf_s (chessenginemodule_path, WCHAR_SIZEOF (chessenginemodule_path), L"%s/engines/%s", app_path, options.engine.program); |
43 | swprintf_s (chessenginemodule_pathname, WCHAR_SIZEOF (chessenginemodule_pathname), L"%s/ |
43 | swprintf_s (chessenginemodule_pathname, WCHAR_SIZEOF (chessenginemodule_pathname), L"%s/engines/%s/%s", app_path, options.engine.program, options.engine.cmdline); |
44 | 44 | ||
45 | // prepare the pipes' security attributes |
45 | // prepare the pipes' security attributes |
46 | saAttr.nLength = sizeof (SECURITY_ATTRIBUTES); |
46 | saAttr.nLength = sizeof (SECURITY_ATTRIBUTES); |
47 | saAttr.bInheritHandle = true; // set the bInheritHandle flag so pipe handles are inherited |
47 | saAttr.bInheritHandle = true; // set the bInheritHandle flag so pipe handles are inherited |
48 | saAttr.lpSecurityDescriptor = NULL; |
48 | saAttr.lpSecurityDescriptor = NULL; |