summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-10-29 16:17:51 +0000
committeryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-10-29 16:17:51 +0000
commitc9b73f54d9d47fe6b3a715192eb59f81ce3354ae (patch)
tree12439a814757a3a910bfd21efb7287d075cac077
parent97bba2ed7b0e2572276076773905f385af87a71e (diff)
downloadruby-c9b73f54d9d47fe6b3a715192eb59f81ce3354ae.tar.gz
ruby-c9b73f54d9d47fe6b3a715192eb59f81ce3354ae.tar.xz
ruby-c9b73f54d9d47fe6b3a715192eb59f81ce3354ae.zip
merged r20014 from trunk into ruby_1_9_1.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@20037 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--win32/win32.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/win32/win32.c b/win32/win32.c
index ded5f2843..50fd55d07 100644
--- a/win32/win32.c
+++ b/win32/win32.c
@@ -4129,10 +4129,8 @@ rb_w32_open(const char *file, int oflag, ...)
fd = -1;
goto quit;
}
- if (!(flags & (FDEV | FPIPE)) && (oflag & O_APPEND)) {
+ if (!(flags & (FDEV | FPIPE)) && (oflag & O_APPEND))
flags |= FAPPEND;
- SetFilePointer(h, 0, NULL, FILE_END);
- }
_set_osfhnd(fd, (long)h);
_osfile(fd) = flags | FOPEN;