mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 16:36:33 +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:
parent
47dde244bd
commit
df00c74675
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue