]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/socket.cpp
Improved selection mode handling in wxGrid::SelectBlock
[wxWidgets.git] / src / common / socket.cpp
index a38097d124f7d72a05c00f99fa744295e25fa0c2..0f13466c0c327c85c8f3059586a5744a1f76e2a0 100644 (file)
@@ -466,7 +466,7 @@ wxUint32 wxSocketBase::_Write(const void *buffer, wxUint32 nbytes)
           break;
 
       ret = GSocket_Write(m_socket, (const char *)buffer, nbytes);
-
+      
       if (ret > 0)
       {
         total  += ret;
@@ -653,7 +653,7 @@ bool wxSocketBase::_Wait(long seconds,
     {
       m_connected = FALSE;
       m_establishing = FALSE;
-      return (flags & GSOCK_LOST_FLAG);
+      return (flags & GSOCK_LOST_FLAG) != 0;
     }
 
     // Wait more?