]> git.saurik.com Git - wxWidgets.git/commitdiff
no message
authorUnknown (UG) <nobody@localhost>
Thu, 3 Dec 1998 15:05:20 +0000 (15:05 +0000)
committerUnknown (UG) <nobody@localhost>
Thu, 3 Dec 1998 15:05:20 +0000 (15:05 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1103 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/socket.cpp

index 06d558dafe222eb08138650cf28283354ebaf854..d8c728b137ecb22beaa5252f0669e2dc404b130b 100644 (file)
@@ -1306,6 +1306,11 @@ extern char wxPanelClassName[];
 LRESULT APIENTRY _EXPORT wxSocketHandlerWndProc(HWND hWnd, UINT message,
    WPARAM wParam, LPARAM lParam)
 {
+  if(message==WM_DESTROY)
+  {
+         ::SetWindowLong(hWnd, GWL_WNDPROC, (LONG) DefWindowProc);
+         return DefWindowProc(hWnd, message, wParam, lParam);
+  }
   wxSocketHandler *h_sock = (wxSocketHandler *)GetWindowLong(hWnd, GWL_USERDATA);
   wxNode *node = h_sock->smsg_list->Find(message);
   wxSocketBase *sock;