Author: pschweitzer Date: Sat Mar 12 11:53:55 2011 New Revision: 51024
URL: http://svn.reactos.org/svn/reactos?rev=51024&view=rev Log: [EXPLORER] Make fix of r51022 compiler independant, on Johannes' suggestion.
Modified: trunk/reactos/base/shell/explorer/shell/pane.cpp
Modified: trunk/reactos/base/shell/explorer/shell/pane.cpp URL: http://svn.reactos.org/svn/reactos/trunk/reactos/base/shell/explorer/shell/p... ============================================================================== --- trunk/reactos/base/shell/explorer/shell/pane.cpp [iso-8859-1] (original) +++ trunk/reactos/base/shell/explorer/shell/pane.cpp [iso-8859-1] Sat Mar 12 11:53:55 2011 @@ -702,7 +702,10 @@ 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); }