diff options
Diffstat (limited to 'win32/win32.c')
-rw-r--r-- | win32/win32.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/win32/win32.c b/win32/win32.c index 53f8dc9c25..72ca08f55e 100644 --- a/win32/win32.c +++ b/win32/win32.c @@ -1811,10 +1811,7 @@ rb_w32_fdclr(int fd, fd_set *set) int rb_w32_fdisset(int fd, fd_set *set) { - SOCKET s = TO_SOCKET(fd); - if (!is_socket(s)) - return 0; - return __WSAFDIsSet(s, set); + return __WSAFDIsSet(TO_SOCKET(fd), set); } // |