From f5fe076ec1f469c110ff36c74a2b6c77bebdc56d Mon Sep 17 00:00:00 2001 From: David Anderson Date: Tue, 2 Aug 2005 10:18:09 +0000 Subject: [PATCH] oops that was win32 --- dlls/sockets/sockets.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/sockets/sockets.cpp b/dlls/sockets/sockets.cpp index f1b5e8ff..41f7d0c6 100755 --- a/dlls/sockets/sockets.cpp +++ b/dlls/sockets/sockets.cpp @@ -149,10 +149,10 @@ static cell AMX_NATIVE_CALL socket_recv(AMX *amx, cell *params) /* 2 param */ memset(tmpchar, 0, length); // Now we recieve tmp = recv(socket, tmpchar, length-1, 0); - if (tmp == SOCKET_ERROR) + if (tmp == -1) { delete [] tmpchar; - return SOCKET_ERROR; + return -1; } // And put a copy of our recieved data into amx's string tmpchar[tmp]='\0';