From: Vadim Zeitlin Date: Wed, 13 Oct 2010 23:08:47 +0000 (+0000) Subject: wxUniv/MSW compilation fix. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/eb7a47b7b943d019e8be047f0d9ad9a0b4278a23?ds=inline wxUniv/MSW compilation fix. wxUniv/MSW compilation was broken by r65589, fix it by not assuming that wxWindowMSW is a wxWindow because wxWindow derives from it in wxUniv. Closes #12534. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65804 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/msw/window.cpp b/src/msw/window.cpp index 7d957ea588..e7f505bf7b 100644 --- a/src/msw/window.cpp +++ b/src/msw/window.cpp @@ -5648,12 +5648,12 @@ void MSWInitAnyKeyEvent(wxKeyEvent& event, WXWPARAM wParam, WXLPARAM lParam, - const wxWindow *win /* may be NULL */) + const wxWindowBase *win /* may be NULL */) { if ( win ) { event.SetId(win->GetId()); - event.SetEventObject(const_cast(win)); + event.SetEventObject(const_cast(win)); } else // No associated window. {