Windows: Bring back code branch for if_cscope.

The Vim code for windows in if_cscope.c/.h was removed during the refactor,
added missing code for error_closing().
This commit is contained in:
Rui Abreu Ferreira
2015-05-17 18:48:47 +01:00
committed by Seth Jackson
parent 4d27bd6bfe
commit b2f9bfbff0
3 changed files with 21 additions and 3 deletions

View File

@@ -743,8 +743,16 @@ err_closing:
(void)close(to_cs[1]);
(void)close(from_cs[0]);
#else
/* WIN32 */
/* Create pipes to communicate with cscope */
// Create pipes to communicate with cscope
int fd;
SECURITY_ATTRIBUTES sa;
PROCESS_INFORMATION pi;
BOOL pipe_stdin = FALSE, pipe_stdout = FALSE; // NOLINT(readability/bool)
STARTUPINFO si;
HANDLE stdin_rd, stdout_rd;
HANDLE stdout_wr, stdin_wr;
BOOL created;
sa.nLength = sizeof(SECURITY_ATTRIBUTES);
sa.bInheritHandle = TRUE;
sa.lpSecurityDescriptor = NULL;