1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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
This commit is contained in:
usa 2010-04-22 16:49:39 +00:00
parent 1152ad658f
commit b6847f7acc
2 changed files with 5 additions and 3 deletions

View file

@ -1,3 +1,8 @@
Fri Apr 23 01:47:54 2010 NAKAMURA Usaku <usa@ruby-lang.org>
* win32/win32.c (rb_w32_wopen): shouldn't use FILE_FLAG_OVERLAPPED with
normal file. #1807, #2510, #2549
Fri Apr 23 01:28:03 2010 NAKAMURA Usaku <usa@ruby-lang.org>
* thread_win32.c (ubf_handle): remove unused typedef.

View file

@ -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) {