diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index bd9c7f909..4488c864d 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +2009-06-17 Corinna Vinschen + + * fhandler_socket.cc (fhandler_socket::recv_internal): Mark WSARecvMsg + as NO_COPY. + 2009-06-16 Christopher Faylor * fhandler.cc (fhandler_base::read_overlapped): Use a better variable diff --git a/winsup/cygwin/fhandler_socket.cc b/winsup/cygwin/fhandler_socket.cc index 93af60ee4..d2e4ac286 100644 --- a/winsup/cygwin/fhandler_socket.cc +++ b/winsup/cygwin/fhandler_socket.cc @@ -1310,7 +1310,7 @@ fhandler_socket::recv_internal (LPWSAMSG wsamsg) LPWSABUF wsabuf = wsamsg->lpBuffers; ULONG wsacnt = wsamsg->dwBufferCount; bool use_recvmsg = false; - static LPFN_WSARECVMSG WSARecvMsg; + static NO_COPY LPFN_WSARECVMSG WSARecvMsg; bool waitall = !!(wsamsg->dwFlags & MSG_WAITALL); bool dontwait = !!(wsamsg->dwFlags & MSG_DONTWAIT);