]> git.saurik.com Git - wxWidgets.git/commitdiff
fixed stupid typo
authorVáclav Slavík <vslavik@fastmail.fm>
Thu, 14 Aug 2003 18:11:01 +0000 (18:11 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Thu, 14 Aug 2003 18:11:01 +0000 (18:11 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22880 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/gsocket.c

index d47d711cc797bfed34fd51d7b0c0488e5d444e77..2ca87dd3055fc53a2d035647e9fc4050e0cca0cd 100644 (file)
@@ -753,7 +753,7 @@ int GSocket_Write(GSocket *socket, const char *buffer, int size)
  */
 GSocketEventFlags GSocket_Select(GSocket *socket, GSocketEventFlags flags)
 {
-  if (USE_GUI())
+  if (!USE_GUI())
   {
     GSocketEventFlags result = 0;
     fd_set readfds;
@@ -860,7 +860,7 @@ GSocketEventFlags GSocket_Select(GSocket *socket, GSocketEventFlags flags)
 
     return (result & flags);
   }
-  else /* !USE_GUI() */
+  else /* USE_GUI() */
   {
     assert(socket != NULL);
     return flags & socket->m_detected;