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:
@@ -931,7 +931,7 @@ void wxMenu::SetTitle(const wxString& label)
|
|||||||
// put the title string in bold face
|
// put the title string in bold face
|
||||||
if ( !m_title.empty() )
|
if ( !m_title.empty() )
|
||||||
{
|
{
|
||||||
SetDefaultMenuItem(GetHmenu(), (UINT_PTR)idMenuTitle);
|
SetDefaultMenuItem(GetHmenu(), (UINT)idMenuTitle);
|
||||||
}
|
}
|
||||||
#endif // Win32
|
#endif // Win32
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user