[EXPLORER]
authorPierre Schweitzer <pierre@reactos.org>
Sat, 12 Mar 2011 11:53:55 +0000 (11:53 +0000)
committerPierre Schweitzer <pierre@reactos.org>
Sat, 12 Mar 2011 11:53:55 +0000 (11:53 +0000)
Make fix of r51022 compiler independant, on Johannes' suggestion.

svn path=/trunk/; revision=51024

reactos/base/shell/explorer/shell/pane.cpp

index 1e69b60..0273fb6 100644 (file)
@@ -702,7 +702,10 @@ void Pane::set_header()
        item.mask = HDI_WIDTH;
        item.cxy = 0;
 
-       for(; i<COLUMNS && x+_widths[i]<scroll_pos; i++) {
+       for(; i<COLUMNS; i++) {
+               if (x + _widths[i] >= scroll_pos)
+                       break;
+
                x += _widths[i];
                Header_SetItem(_hwndHeader, i, &item);
        }