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
This commit is contained in:
@@ -175,7 +175,7 @@ wxFrame::~wxFrame()
|
||||
|
||||
if (wxTheApp->GetExitOnFrameDelete())
|
||||
{
|
||||
::WinPostMsg(GetHWND(), WM_QUIT, 0, 0);
|
||||
::WinPostMsg(NULL, WM_QUIT, 0, 0);
|
||||
}
|
||||
}
|
||||
wxModelessWindows.DeleteObject(this);
|
||||
|
@@ -1881,7 +1881,7 @@ MRESULT wxWindow::OS2WindowProc(
|
||||
case WM_DESTROY:
|
||||
HandleDestroy();
|
||||
bProcessed = TRUE;
|
||||
delete this;
|
||||
// delete this;
|
||||
break;
|
||||
|
||||
case WM_MOVE:
|
||||
|
Reference in New Issue
Block a user