]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/sckipc.cpp
1. wxGetFullHostName() does return the full host name now under MSW
[wxWidgets.git] / src / common / sckipc.cpp
index f577b046f35a7ba33a7225d3c88c242d8fbb16fd..16406abe08a93b40955db2939fd22b8c01c25dcc 100644 (file)
@@ -409,7 +409,7 @@ void wxTCPEventHandler::Client_OnRequest(wxSocketEvent &event)
 {
   wxSocketBase *sock = event.GetSocket();
   wxSocketNotify evt = event.GetSocketEvent();
-  wxTCPConnection *connection = (wxTCPConnection *)(event.GetClientData());
+  wxTCPConnection *connection = (wxTCPConnection *)(sock->GetClientData());
 
   // This socket is being deleted; skip this event
   if (!connection)