diff options
author | Jeff Cohen <jeffc@jolt-lang.org> | 2005-02-20 02:48:51 +0000 |
---|---|---|
committer | Jeff Cohen <jeffc@jolt-lang.org> | 2005-02-20 02:48:51 +0000 |
commit | 45a1b26caa5212fcfa6c56518c883d10f5a4378c (patch) | |
tree | 784b7c7d175975f0fffb5d0a8e6a6a92ed9e78c8 /lib/System/Win32/Program.inc | |
parent | 875d08e36b7b1b02d4d0c98390b655f6c81e0dc1 (diff) | |
download | external_llvm-45a1b26caa5212fcfa6c56518c883d10f5a4378c.zip external_llvm-45a1b26caa5212fcfa6c56518c883d10f5a4378c.tar.gz external_llvm-45a1b26caa5212fcfa6c56518c883d10f5a4378c.tar.bz2 |
Fix silly mistake.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20256 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/System/Win32/Program.inc')
-rw-r--r-- | lib/System/Win32/Program.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/System/Win32/Program.inc b/lib/System/Win32/Program.inc index 67965d1..4c52091 100644 --- a/lib/System/Win32/Program.inc +++ b/lib/System/Win32/Program.inc @@ -86,7 +86,7 @@ static HANDLE RedirectIO(const Path *path, int fd) { sa.bInheritHandle = TRUE; h = CreateFile(fname, fd ? GENERIC_WRITE : GENERIC_READ, FILE_SHARE_READ, - &sa, fd ? OPEN_EXISTING : CREATE_ALWAYS, + &sa, fd == 0 ? OPEN_EXISTING : CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); if (h == INVALID_HANDLE_VALUE) { ThrowError(std::string(fname) + ": Can't open file for " + |