diff --git a/reactos/base/shell/explorer/shell/pane.cpp b/reactos/base/shell/explorer/shell/pane.cpp index 1e69b60d828..0273fb67802 100644 --- a/reactos/base/shell/explorer/shell/pane.cpp +++ b/reactos/base/shell/explorer/shell/pane.cpp @@ -702,7 +702,10 @@ void Pane::set_header() item.mask = HDI_WIDTH; item.cxy = 0; - for(; i= scroll_pos) + break; + x += _widths[i]; Header_SetItem(_hwndHeader, i, &item); }