From b6847f7acca72b135ad00793c4706df2058d1ed8 Mon Sep 17 00:00:00 2001 From: usa Date: Thu, 22 Apr 2010 16:49:39 +0000 Subject: * 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 --- win32/win32.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'win32') 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) { -- cgit v1.2.3