[前][次][番号順一覧][スレッド一覧]

ruby-changes:13813

From: wanabe <ko1@a...>
Date: Sun, 1 Nov 2009 13:36:49 +0900 (JST)
Subject: [ruby-changes:13813] Ruby:r25611 (trunk): * win32/win32.c (overlapped_socket_io, recvmsg, sendmsg): pass handle

wanabe	2009-11-01 13:36:33 +0900 (Sun, 01 Nov 2009)

  New Revision: 25611

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=25611

  Log:
    * win32/win32.c (overlapped_socket_io, recvmsg, sendmsg): pass handle
      instead of pointer to CloseHandle().

  Modified files:
    trunk/ChangeLog
    trunk/win32/win32.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 25610)
+++ ChangeLog	(revision 25611)
@@ -1,3 +1,8 @@
+Sun Nov  1 13:31:16 2009  wanabe  <s.wanabe@g...>
+
+	* 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@g...>
 
 	* ext/socket/socket.c (socket_s_ip_address_list): use FreeLibrary() to
Index: win32/win32.c
===================================================================
--- win32/win32.c	(revision 25610)
+++ win32/win32.c	(revision 25611)
@@ -2780,7 +2780,7 @@
 	    errno = map_errno(err);
 	    r = -1;
 	}
-	CloseHandle(&wol.hEvent);
+	CloseHandle(wol.hEvent);
     }
 
     return r;
@@ -2926,7 +2926,7 @@
 	    errno = map_errno(err);
 	    len = -1;
 	}
-	CloseHandle(&wol.hEvent);
+	CloseHandle(wol.hEvent);
     }
     if (ret == SOCKET_ERROR)
 	return -1;
@@ -3018,7 +3018,7 @@
 	    errno = map_errno(err);
 	    len = -1;
 	}
-	CloseHandle(&wol.hEvent);
+	CloseHandle(wol.hEvent);
     }
 
     return len;

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]