diff --git a/src/msw/window.cpp b/src/msw/window.cpp index 728074a674..d186906e6d 100644 --- a/src/msw/window.cpp +++ b/src/msw/window.cpp @@ -4186,7 +4186,7 @@ bool wxWindowMSW::HandleSetCursor(WXHWND WXUNUSED(hWnd), if ( wxIsBusy() ) { wxDialog* const - dlg = wxDynamicCast(wxGetTopLevelParent(this), wxDialog); + dlg = wxDynamicCast(wxGetTopLevelParent((wxWindow *)this), wxDialog); if ( !dlg || !dlg->IsModal() ) isBusy = true; }