w32sock: leave win32 error in place.
authorPaolo Bonzini <bonzini@gnu.org>
Thu, 26 Nov 2009 19:29:16 +0000 (20:29 +0100)
committerPaolo Bonzini <bonzini@gnu.org>
Thu, 26 Nov 2009 19:29:16 +0000 (20:29 +0100)
* lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.

ChangeLog
lib/w32sock.h

index 717c503..25e8b59 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2009-11-26  Richard Jones  <rjones@redhat.com>
+
+       w32sock: leave win32 error in place.
+       * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
+
 2009-11-26  Eric Blake  <ebb9@byu.net>
 
        init.sh: suggest to use skip_ and fail_ functions in comments
index 0622985..8705f8f 100644 (file)
@@ -32,7 +32,6 @@ static inline void
 set_winsock_errno (void)
 {
   int err = WSAGetLastError ();
-  WSASetLastError (0);
 
   /* Map some WSAE* errors to the runtime library's error codes.  */
   switch (err)