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:
Julian Smart 2005-09-09 14:44:15 +00:00
parent cde5a85767
commit 60b0bd1dd1

View File

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