mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-28 12:23:28 +00:00
[EXPLORER]
Fix array access out of bounds. See issue #5990 for more details svn path=/trunk/; revision=51022
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user