Francois Gouget : ws2_32: Make sure INVALID_SOCKET is correctly typed.

Alexandre Julliard julliard at winehq.org
Mon May 26 13:13:02 CDT 2008


Module: wine
Branch: master
Commit: 2a4aea0918c26c4574f661cf66932cf719d4f017
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=2a4aea0918c26c4574f661cf66932cf719d4f017

Author: Francois Gouget <fgouget at free.fr>
Date:   Mon May 26 17:38:53 2008 +0200

ws2_32: Make sure INVALID_SOCKET is correctly typed.

---

 include/winsock.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/include/winsock.h b/include/winsock.h
index 9187f41..dd202ea 100644
--- a/include/winsock.h
+++ b/include/winsock.h
@@ -395,7 +395,7 @@ typedef UINT_PTR SOCKET;
  * This is used instead of -1, since the
  * SOCKET type is unsigned.
  */
-#define INVALID_SOCKET             (~0)
+#define INVALID_SOCKET             (SOCKET)(~0)
 #define SOCKET_ERROR               (-1)
 
 typedef struct WS(sockaddr)




More information about the wine-cvs mailing list