[EXPLORER]

Fix array access out of bounds.
See issue #5990 for more details

svn path=/trunk/; revision=51022
This commit is contained in:
Pierre Schweitzer 2011-03-12 08:23:05 +00:00
parent 47dde244bd
commit df00c74675

View file

@ -702,7 +702,7 @@ void Pane::set_header()
item.mask = HDI_WIDTH;
item.cxy = 0;
for(; x+_widths[i]<scroll_pos && i<COLUMNS; i++) {
for(; i<COLUMNS && x+_widths[i]<scroll_pos; i++) {
x += _widths[i];
Header_SetItem(_hwndHeader, i, &item);
}