Author: hbelusca
Date: Thu Aug 3 14:56:07 2017
New Revision: 75472
URL:
http://svn.reactos.org/svn/reactos?rev=75472&view=rev
Log:
[FREELDR][INFLIB]: It is perfectly correct to retrieve the field of index == 0 of an INF
line, by using the InfGetStringField() helper (corresponding to the SetupGetStringField()
API).
Modified:
trunk/reactos/boot/freeldr/freeldr/lib/inffile/inffile.c
trunk/reactos/sdk/lib/inflib/infget.c
Modified: trunk/reactos/boot/freeldr/freeldr/lib/inffile/inffile.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/boot/freeldr/freeldr/lib/i…
==============================================================================
--- trunk/reactos/boot/freeldr/freeldr/lib/inffile/inffile.c [iso-8859-1] (original)
+++ trunk/reactos/boot/freeldr/freeldr/lib/inffile/inffile.c [iso-8859-1] Thu Aug 3
14:56:07 2017
@@ -1459,7 +1459,7 @@
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;
Modified: trunk/reactos/sdk/lib/inflib/infget.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/sdk/lib/inflib/infget.c?re…
==============================================================================
--- trunk/reactos/sdk/lib/inflib/infget.c [iso-8859-1] (original)
+++ trunk/reactos/sdk/lib/inflib/infget.c [iso-8859-1] Thu Aug 3 14:56:07 2017
@@ -548,7 +548,7 @@
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;