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:
Mattia Barbon 2007-06-18 19:23:09 +00:00
parent c5d7b81ecf
commit ad877f92c6

View File

@ -254,6 +254,7 @@ const wxClassInfo* wxMediaCtrl::NextBackend(wxClassInfo::const_iterator* it)
if ( classInfo->IsKindOf(CLASSINFO(wxMediaBackend)) && if ( classInfo->IsKindOf(CLASSINFO(wxMediaBackend)) &&
classInfo != CLASSINFO(wxMediaBackend) ) classInfo != CLASSINFO(wxMediaBackend) )
{ {
++(*it);
return classInfo; return classInfo;
} }
} }