summaryrefslogtreecommitdiff
path: root/win32
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-04-22 16:49:39 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-04-22 16:49:39 +0000
commitb6847f7acca72b135ad00793c4706df2058d1ed8 (patch)
tree606ae43d997a67ea50b9029fb1a44ebc0dd2e451 /win32
parent1152ad658f2374ee8ded187b7e8ce9a4ebd5fc36 (diff)
* win32/win32.c (rb_w32_wopen): shouldn't use FILE_FLAG_OVERLAPPED with
normal file. #1807, #2510, #2549 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27449 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'win32')
-rw-r--r--win32/win32.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/win32/win32.c b/win32/win32.c
index 70b49769a2..26477e86be 100644
--- a/win32/win32.c
+++ b/win32/win32.c
@@ -4684,9 +4684,6 @@ rb_w32_wopen(const WCHAR *file, int oflag, ...)
_set_osfhnd(fd, (long)INVALID_HANDLE_VALUE);
_set_osflags(fd, 0);
- /* open with FILE_FLAG_OVERLAPPED if have CancelIo */
- if (cancel_io)
- attr |= FILE_FLAG_OVERLAPPED;
h = CreateFileW(file, access, FILE_SHARE_READ | FILE_SHARE_WRITE, &sec,
create, attr, NULL);
if (h == INVALID_HANDLE_VALUE) {