--- 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;