fixed stupid typo

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22880 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík 2003-08-14 18:11:01 +00:00
parent 8acd402fb0
commit 4368b1a640

View 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;