projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
875d08e
)
Fix silly mistake.
author
Jeff Cohen
<jeffc@jolt-lang.org>
Sun, 20 Feb 2005 02:48:51 +0000
(
02:48
+0000)
committer
Jeff Cohen
<jeffc@jolt-lang.org>
Sun, 20 Feb 2005 02:48:51 +0000
(
02:48
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20256
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/System/Win32/Program.inc
patch
|
blob
|
history
diff --git
a/lib/System/Win32/Program.inc
b/lib/System/Win32/Program.inc
index 67965d1b6947a8bbb45dfa48e43d2511491e56ba..4c520918bd1436bd0adc81ac25c89860bb9256e8 100644
(file)
--- 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 " +