Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
CMake
CMake
Commits
4435bb09
Commit
4435bb09
authored
Oct 02, 2002
by
Andy Cedilnik
Browse files
Cleanup
parent
b0518155
Changes
1
Show whitespace changes
Inline
Side-by-side
Source/cmSystemTools.cxx
View file @
4435bb09
...
...
@@ -1351,7 +1351,6 @@ bool WindowsRunCommand(const char* command, const char* dir,
}
else
sa
.
lpSecurityDescriptor
=
NULL
;
sa
.
nLength
=
sizeof
(
SECURITY_ATTRIBUTES
);
sa
.
bInheritHandle
=
true
;
...
...
@@ -1380,10 +1379,11 @@ bool WindowsRunCommand(const char* command, const char* dir,
* members. STARTF_USESHOWWINDOW validates the wShowWindow
* member. */
si
.
cb
=
sizeof
(
STARTUPINFO
);
si
.
dwFlags
=
STARTF_USESTDHANDLES
|
STARTF_USESHOWWINDOW
;
si
.
wShowWindow
=
SW_HIDE
;
si
.
hStdOutput
=
newstdout
;
si
.
hStdError
=
newstdout
;
si
.
wShowWindow
=
SW_HIDE
;
//set the new handles for the child process si.hStdInput = newstdin;
char
*
commandAndArgs
=
strcpy
(
new
char
[
strlen
(
command
)
+
1
],
command
);
...
...
@@ -1456,6 +1456,8 @@ bool WindowsRunCommand(const char* command, const char* dir,
if
(
exit
!=
STILL_ACTIVE
)
break
;
}
WaitForSingleObject
(
pi
.
hProcess
,
INFINITE
);
GetExitCodeProcess
(
pi
.
hProcess
,
&
exit
);
CloseHandle
(
pi
.
hThread
);
CloseHandle
(
pi
.
hProcess
);
CloseHandle
(
newstdin
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment