dlls/setupapi/parser.c

Ge van Geldorp gvg at reactos.com
Sun Aug 14 15:13:40 CDT 2005


Changelog:
  Ge van Geldorp <gvg at reactos.com>
  - index is 1-based at this point, index == line->nb_fields is the last
    field and is valid

Index: dlls/setupapi/parser.c
===================================================================
RCS file: /home/wine/wine/dlls/setupapi/parser.c,v
retrieving revision 1.18
diff -u -r1.18 parser.c
--- dlls/setupapi/parser.c	22 Jul 2005 18:30:53 -0000	1.18
+++ dlls/setupapi/parser.c	14 Aug 2005 20:10:38 -0000
@@ -1700,7 +1700,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;
@@ -1759,7 +1759,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;
@@ -1808,7 +1808,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;



More information about the wine-patches mailing list