зеркало из https://github.com/github/ruby.git
* win32/win32.c (overlapped_socket_io, recvmsg, sendmsg): pass handle
instead of pointer to CloseHandle(). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25611 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
24a6752f54
Коммит
754462d4f1
|
@ -1,3 +1,8 @@
|
|||
Sun Nov 1 13:31:16 2009 wanabe <s.wanabe@gmail.com>
|
||||
|
||||
* win32/win32.c (overlapped_socket_io, recvmsg, sendmsg): pass handle
|
||||
instead of pointer to CloseHandle().
|
||||
|
||||
Sun Nov 1 13:11:27 2009 wanabe <s.wanabe@gmail.com>
|
||||
|
||||
* ext/socket/socket.c (socket_s_ip_address_list): use FreeLibrary() to
|
||||
|
|
|
@ -2780,7 +2780,7 @@ overlapped_socket_io(BOOL input, int fd, char *buf, int len, int flags,
|
|||
errno = map_errno(err);
|
||||
r = -1;
|
||||
}
|
||||
CloseHandle(&wol.hEvent);
|
||||
CloseHandle(wol.hEvent);
|
||||
}
|
||||
|
||||
return r;
|
||||
|
@ -2926,7 +2926,7 @@ recvmsg(int fd, struct msghdr *msg, int flags)
|
|||
errno = map_errno(err);
|
||||
len = -1;
|
||||
}
|
||||
CloseHandle(&wol.hEvent);
|
||||
CloseHandle(wol.hEvent);
|
||||
}
|
||||
if (ret == SOCKET_ERROR)
|
||||
return -1;
|
||||
|
@ -3018,7 +3018,7 @@ sendmsg(int fd, const struct msghdr *msg, int flags)
|
|||
errno = map_errno(err);
|
||||
len = -1;
|
||||
}
|
||||
CloseHandle(&wol.hEvent);
|
||||
CloseHandle(wol.hEvent);
|
||||
}
|
||||
|
||||
return len;
|
||||
|
|
Загрузка…
Ссылка в новой задаче