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:
@@ -753,7 +753,7 @@ int GSocket_Write(GSocket *socket, const char *buffer, int size)
|
|||||||
*/
|
*/
|
||||||
GSocketEventFlags GSocket_Select(GSocket *socket, GSocketEventFlags flags)
|
GSocketEventFlags GSocket_Select(GSocket *socket, GSocketEventFlags flags)
|
||||||
{
|
{
|
||||||
if (USE_GUI())
|
if (!USE_GUI())
|
||||||
{
|
{
|
||||||
GSocketEventFlags result = 0;
|
GSocketEventFlags result = 0;
|
||||||
fd_set readfds;
|
fd_set readfds;
|
||||||
@@ -860,7 +860,7 @@ GSocketEventFlags GSocket_Select(GSocket *socket, GSocketEventFlags flags)
|
|||||||
|
|
||||||
return (result & flags);
|
return (result & flags);
|
||||||
}
|
}
|
||||||
else /* !USE_GUI() */
|
else /* USE_GUI() */
|
||||||
{
|
{
|
||||||
assert(socket != NULL);
|
assert(socket != NULL);
|
||||||
return flags & socket->m_detected;
|
return flags & socket->m_detected;
|
||||||
|
Reference in New Issue
Block a user