From 754462d4f144e48813c7d8fe705f6c46858b8d9d Mon Sep 17 00:00:00 2001 From: wanabe Date: Sun, 1 Nov 2009 04:36:33 +0000 Subject: [PATCH] * 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 --- ChangeLog | 5 +++++ win32/win32.c | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index e6682dbab3..e394c33248 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Sun Nov 1 13:31:16 2009 wanabe + + * win32/win32.c (overlapped_socket_io, recvmsg, sendmsg): pass handle + instead of pointer to CloseHandle(). + Sun Nov 1 13:11:27 2009 wanabe * ext/socket/socket.c (socket_s_ip_address_list): use FreeLibrary() to diff --git a/win32/win32.c b/win32/win32.c index d87a65e5e8..7a81550632 100644 --- a/win32/win32.c +++ b/win32/win32.c @@ -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;