From: Mikko Rasa Date: Sun, 5 Jul 2009 20:37:08 +0000 (+0000) Subject: Fix a comparison operator on win32 X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=02a6ddf010b763c6b08e706bf0c771c0fd250d25;p=libs%2Fnet.git Fix a comparison operator on win32 --- diff --git a/source/streamsocket.cpp b/source/streamsocket.cpp index 48d06a7..56df993 100644 --- a/source/streamsocket.cpp +++ b/source/streamsocket.cpp @@ -107,7 +107,7 @@ int StreamSocket::connect(const SockAddr &addr) #ifdef WIN32 int err=WSAConnect(handle, &sa, size, 0, 0, 0, 0); - if(err=SOCKET_ERROR) + if(err==SOCKET_ERROR) { int err_code=WSAGetLastError(); if(err_code==WSAEWOULDBLOCK)