[llvm-commits] CVS: llvm/lib/System/Win32/Program.inc

Jeff Cohen jeffc at jolt-lang.org
Sat Feb 19 18:49:02 PST 2005



Changes in directory llvm/lib/System/Win32:

Program.inc updated: 1.11 -> 1.12
---
Log message:

Fix silly mistake.

---
Diffs of the changes:  (+1 -1)

 Program.inc |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)


Index: llvm/lib/System/Win32/Program.inc
diff -u llvm/lib/System/Win32/Program.inc:1.11 llvm/lib/System/Win32/Program.inc:1.12
--- llvm/lib/System/Win32/Program.inc:1.11	Sat Feb 19 20:43:04 2005
+++ llvm/lib/System/Win32/Program.inc	Sat Feb 19 20:48:51 2005
@@ -86,7 +86,7 @@
   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 " +






More information about the llvm-commits mailing list