Fix incorrect cast resulting in a warning in wxMSW wxMenu code.

Menu id is a 32 bit UINT value, even in 64 bit builds, so don't cast it to
UINT_PTR.

Closes #13815.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70441 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2012-01-23 11:28:05 +00:00
parent fbf9fe29f9
commit d34791c2be

View File

@ -931,7 +931,7 @@ void wxMenu::SetTitle(const wxString& label)
// put the title string in bold face
if ( !m_title.empty() )
{
SetDefaultMenuItem(GetHmenu(), (UINT_PTR)idMenuTitle);
SetDefaultMenuItem(GetHmenu(), (UINT)idMenuTitle);
}
#endif // Win32
}