Must update iterator to avoid infinite loop
in case backend initialization fails. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46529 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
c5d7b81ecf
commit
ad877f92c6
@ -254,6 +254,7 @@ const wxClassInfo* wxMediaCtrl::NextBackend(wxClassInfo::const_iterator* it)
|
||||
if ( classInfo->IsKindOf(CLASSINFO(wxMediaBackend)) &&
|
||||
classInfo != CLASSINFO(wxMediaBackend) )
|
||||
{
|
||||
++(*it);
|
||||
return classInfo;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user