[FREELDR][INFLIB]: It is perfectly correct to retrieve the field of index == 0 of...
authorHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Thu, 3 Aug 2017 14:56:07 +0000 (14:56 +0000)
committerHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Thu, 3 Aug 2017 14:56:07 +0000 (14:56 +0000)
svn path=/trunk/; revision=75472

reactos/boot/freeldr/freeldr/lib/inffile/inffile.c
reactos/sdk/lib/inflib/infget.c

index aa5aa54..3ca695e 100644 (file)
@@ -1459,7 +1459,7 @@ InfGetStringField (
     PCHAR Ptr;
     SIZE_T Size;
 
-    if ((Context == NULL) || (Context->Line == NULL) || (FieldIndex == 0))
+    if ((Context == NULL) || (Context->Line == NULL))
     {
 //      DPRINT("Invalid parameter\n");
         return FALSE;
index a79dfed..f148c59 100644 (file)
@@ -548,7 +548,7 @@ InfpGetStringField(PINFCONTEXT Context,
   PWCHAR Ptr;
   ULONG Size;
 
-  if (Context == NULL || Context->Line == NULL || FieldIndex == 0)
+  if (Context == NULL || Context->Line == NULL)
     {
       DPRINT("Invalid parameter\n");
       return INF_STATUS_INVALID_PARAMETER;