X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2e9f62dafb75dc5baa3800af456d1b0248d85357..4fcd60c72f6b90f5063f7000ff5a80a9004055a3:/src/msw/window.cpp diff --git a/src/msw/window.cpp b/src/msw/window.cpp index db1345a74e..aa47fded24 100644 --- a/src/msw/window.cpp +++ b/src/msw/window.cpp @@ -330,9 +330,9 @@ wxWindowMSW::~wxWindowMSW() wxFrame *frame = wxDynamicCast(win, wxFrame); if ( frame ) { - if ( frameMSW->GetLastFocus() == this ) + if ( frame->GetLastFocus() == this ) { - frameMSW->SetLastFocus((wxWindow*)NULL); + frame->SetLastFocus((wxWindow*)NULL); } break; } @@ -2868,8 +2868,7 @@ bool wxWindowMSW::MSWCreate(int id, if ( !m_hWnd ) { - wxLogError(_("Can't create window of class %s!\nPossible Windows 3.x compatibility problem?"), - wclass); + wxLogSysError(_("Can't create window of class %s"), wclass); return FALSE; }