Red Hat Linux
Click URL instructions:
Right-click on ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)
You seem to have CSS turned off.
Please don't fill out this field.
Briefly describe the problem (required):
Please provide the ad click URL, if possible:
Date: 2010-08-14 00:41:42 +0000 (Sat, 14 Aug 2010)
fixed: proper bounds check for m_visibleViews vector
(cherry picked from commit f60e11b4ac3cba1c9730b8d0b96bc5d2e1963ce7)
--- branches/Dharma/xbmc/GUIViewControl.cpp 2010-08-14 00:38:15 UTC (rev 32771)
+++ branches/Dharma/xbmc/GUIViewControl.cpp 2010-08-14 00:41:42 UTC (rev 32772)
@@ -239,7 +239,7 @@
int CGUIViewControl::GetViewModeNumber(int number) const
CGUIBaseContainer *nextView = NULL;
- if (number >= 0 || number < (int)m_visibleViews.size())
+ if (number >= 0 && number < (int)m_visibleViews.size())
nextView = (CGUIBaseContainer *)m_visibleViews[number];
else if (m_visibleViews.size())
nextView = (CGUIBaseContainer *)m_visibleViews;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Sign up for the SourceForge newsletter: