Applied patch [ 1283943 ] Fix crash in GSocket::Select
From Paul Rupe git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35446 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
cde5a85767
commit
60b0bd1dd1
@ -966,6 +966,9 @@ GSocketEventFlags GSocket::Select(GSocketEventFlags flags)
|
||||
|
||||
assert(this);
|
||||
|
||||
if (m_fd == -1)
|
||||
return (GSOCK_LOST_FLAG & flags);
|
||||
|
||||
/* Do not use a static struct, Linux can garble it */
|
||||
tv.tv_sec = m_timeout / 1000;
|
||||
tv.tv_usec = (m_timeout % 1000) * 1000;
|
||||
|
Loading…
Reference in New Issue
Block a user