From afef064bbcb7bf5adb2f8910a196aadc5edaacf9 Mon Sep 17 00:00:00 2001 From: Ryan Dortmans Date: Thu, 28 Oct 2004 07:54:49 +0000 Subject: [PATCH] Xbox: 0 is a valid socket number --- stepmania/src/ezsockets.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/stepmania/src/ezsockets.cpp b/stepmania/src/ezsockets.cpp index 075376a51e..eec4fe5d69 100644 --- a/stepmania/src/ezsockets.cpp +++ b/stepmania/src/ezsockets.cpp @@ -60,7 +60,11 @@ EzSockets::~EzSockets() //Check to see if the socket has been created bool EzSockets::check() { +#if !defined(XBOX) return sock > SOCKET_NONE; +#else + return sock != INVALID_SOCKET; +#endif } bool EzSockets::create() @@ -94,7 +98,11 @@ bool EzSockets::create(int Protocol, int Type) state = skDISCONNECTED; sock = socket(AF_INET, Type, Protocol); lastCode = sock; +#if !defined(XBOX) return sock > SOCKET_NONE; //Socket must be Greater than 0 +#else + return sock != INVALID_SOCKET; +#endif }