Author: pschweitzer
Date: Sat Mar 12 08:23:05 2011
New Revision: 51022

URL: http://svn.reactos.org/svn/reactos?rev=51022&view=rev
Log:
[EXPLORER]
Fix array access out of bounds.
See issue #5990 for more details

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/pane.cpp?rev=51022&r1=51021&r2=51022&view=diff
==============================================================================
--- 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 
08:23:05 2011
@@ -702,7 +702,7 @@
        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);
        }


Reply via email to