Check that event's IDs range is valid, i.e. that lower bound

is not higher than upper bound.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62615 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík 2009-11-11 17:18:49 +00:00
parent 869bc90db7
commit 58791ef890

View File

@ -2760,7 +2760,10 @@ struct WXDLLIMPEXP_BASE wxEventTableEntryBase
m_lastId(idLast),
m_fn(fn),
m_callbackUserData(data)
{ }
{
wxASSERT_MSG( idLast == wxID_ANY || winid <= idLast,
"invalid IDs range: lower bound > upper bound" );
}
wxEventTableEntryBase( const wxEventTableEntryBase &entry )
: m_id( entry.m_id ),