From 4d0986499b16895f5a25555ae0d3626a3d27e840 Mon Sep 17 00:00:00 2001 From: David Webster Date: Tue, 5 Sep 2000 13:59:50 +0000 Subject: [PATCH] Updates to keep OS/2 Frame apps from crashing on exit. Fixes WM_QUIT processing git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8256 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/os2/frame.cpp | 2 +- src/os2/window.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/os2/frame.cpp b/src/os2/frame.cpp index 98308cc88c..1b431f4443 100644 --- a/src/os2/frame.cpp +++ b/src/os2/frame.cpp @@ -175,7 +175,7 @@ wxFrame::~wxFrame() if (wxTheApp->GetExitOnFrameDelete()) { - ::WinPostMsg(GetHWND(), WM_QUIT, 0, 0); + ::WinPostMsg(NULL, WM_QUIT, 0, 0); } } wxModelessWindows.DeleteObject(this); diff --git a/src/os2/window.cpp b/src/os2/window.cpp index 0573448e60..1618cb714a 100644 --- a/src/os2/window.cpp +++ b/src/os2/window.cpp @@ -1881,7 +1881,7 @@ MRESULT wxWindow::OS2WindowProc( case WM_DESTROY: HandleDestroy(); bProcessed = TRUE; - delete this; +// delete this; break; case WM_MOVE: @@ -2426,7 +2426,7 @@ bool wxWindow::OS2Create( wxAssociateWinWithHandle((HWND)m_hWnd ,this ); - // + // // Now need to subclass window. // -- 2.50.0