[ros-diffs] [gvg] 17388: index is 1-based at this point, index == line->nb_fields is the last

gvg at svn.reactos.com gvg at svn.reactos.com
Sun Aug 14 22:22:41 CEST 2005


index is 1-based at this point, index == line->nb_fields is the last
field and is valid
Modified: trunk/reactos/lib/setupapi/parser.c
  _____  

Modified: trunk/reactos/lib/setupapi/parser.c
--- trunk/reactos/lib/setupapi/parser.c	2005-08-14 17:12:10 UTC (rev
17387)
+++ trunk/reactos/lib/setupapi/parser.c	2005-08-14 20:22:37 UTC (rev
17388)
@@ -1714,7 +1714,7 @@

         SetLastError( ERROR_LINE_NOT_FOUND );
         return FALSE;
     }
-    if (!index || index >= line->nb_fields)
+    if (!index || index > line->nb_fields)
     {
         SetLastError( ERROR_INVALID_PARAMETER );
         return FALSE;
@@ -1773,7 +1773,7 @@
         SetLastError( ERROR_LINE_NOT_FOUND );
         return FALSE;
     }
-    if (!index || index >= line->nb_fields)
+    if (!index || index > line->nb_fields)
     {
         SetLastError( ERROR_INVALID_PARAMETER );
         return FALSE;
@@ -1822,7 +1822,7 @@
         SetLastError( ERROR_LINE_NOT_FOUND );
         return FALSE;
     }
-    if (!index || index >= line->nb_fields)
+    if (!index || index > line->nb_fields)
     {
         SetLastError( ERROR_INVALID_PARAMETER );
         return FALSE;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.reactos.org/pipermail/ros-diffs/attachments/20050814/3c8709ac/attachment.html


More information about the Ros-diffs mailing list