summaryrefslogtreecommitdiff
path: root/win32
diff options
context:
space:
mode:
Diffstat (limited to 'win32')
-rw-r--r--win32/win32.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/win32/win32.c b/win32/win32.c
index ded5f2843d..50fd55d076 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;