mirror of
https://github.com/ruby/ruby.git
synced 2025-08-23 13:04:13 +02:00
* win32/win32.c (rb_w32_fdisset): check whether the handle is valid.
fixed: [ruby-core:03959] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7560 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
4785d53be1
commit
6f3923f29e
2 changed files with 11 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
Wed Dec 15 14:22:10 2004 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||
|
||||
* win32/win32.c (rb_w32_fdisset): check whether the handle is valid.
|
||||
fixed: [ruby-core:03959]
|
||||
|
||||
Wed Dec 15 10:30:37 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* ext/openssl/ossl_digest.c (ossl_digest_initialize): [ruby-dev:25198]
|
||||
|
|
|
@ -1811,7 +1811,12 @@ rb_w32_fdclr(int fd, fd_set *set)
|
|||
int
|
||||
rb_w32_fdisset(int fd, fd_set *set)
|
||||
{
|
||||
return __WSAFDIsSet(TO_SOCKET(fd), set);
|
||||
int ret;
|
||||
SOCKET s = TO_SOCKET(fd);
|
||||
if (s == (SOCKET)INVALID_HANDLE_VALUE)
|
||||
return 0;
|
||||
RUBY_CRITICAL(ret = __WSAFDIsSet(s, set));
|
||||
return ret;
|
||||
}
|
||||
|
||||
//
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue