summaryrefslogtreecommitdiffstats
path: root/Source/kwsys/ProcessWin32.c
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2018-09-14 17:25:53 (GMT)
committerBrad King <brad.king@kitware.com>2018-09-14 17:25:53 (GMT)
commit49e7a82c90bd1ccd59089b6c0b1687c341e51d5e (patch)
tree5f2daa9caefb68a707130a4b75c50fc6ea1f9e38 /Source/kwsys/ProcessWin32.c
parent333804fa0e12c3df9ef16fec163451cffda52df4 (diff)
parentb13c8526b1f617f5dd146f42c6e1d48040cb527d (diff)
downloadCMake-49e7a82c90bd1ccd59089b6c0b1687c341e51d5e.zip
CMake-49e7a82c90bd1ccd59089b6c0b1687c341e51d5e.tar.gz
CMake-49e7a82c90bd1ccd59089b6c0b1687c341e51d5e.tar.bz2
Merge branch 'upstream-KWSys' into update-kwsys
* upstream-KWSys: KWSys 2018-09-14 (1809bedd)
Diffstat (limited to 'Source/kwsys/ProcessWin32.c')
-rw-r--r--Source/kwsys/ProcessWin32.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/kwsys/ProcessWin32.c b/Source/kwsys/ProcessWin32.c
index 9fa0cb1..2a2e737 100644
--- a/Source/kwsys/ProcessWin32.c
+++ b/Source/kwsys/ProcessWin32.c
@@ -973,8 +973,8 @@ void kwsysProcess_Execute(kwsysProcess* cp)
wchar_t* wstdin = kwsysEncoding_DupToWide(cp->PipeFileSTDIN);
DWORD error;
cp->PipeChildStd[0] =
- CreateFileW(wstdin, GENERIC_READ | GENERIC_WRITE,
- FILE_SHARE_READ | FILE_SHARE_WRITE, 0, OPEN_EXISTING, 0, 0);
+ CreateFileW(wstdin, GENERIC_READ, FILE_SHARE_READ | FILE_SHARE_WRITE, 0,
+ OPEN_EXISTING, 0, 0);
error = GetLastError(); /* Check now in case free changes this. */
free(wstdin);
if (cp->PipeChildStd[0] == INVALID_HANDLE_VALUE) {