summaryrefslogtreecommitdiff
path: root/win32
diff options
context:
space:
mode:
authoryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-10-29 16:11:12 +0000
committeryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-10-29 16:11:12 +0000
commitbb51917dcee8660eebc6c157355d261f59e695e3 (patch)
tree08b2b31562a223a6e5d72a5d2ce2db0bb6c2a818 /win32
parent85ebe116040992b1775a7b13682b723775231de1 (diff)
merged 20011 from trunk into ruby_1_9_1.
* complex.c: uses macro in declarations. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@20033 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'win32')
-rw-r--r--win32/win32.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/win32/win32.c b/win32/win32.c
index 50fd55d076..ded5f2843d 100644
--- a/win32/win32.c
+++ b/win32/win32.c
@@ -4129,8 +4129,10 @@ 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;