[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).

svn path=/trunk/; revision=75472
This commit is contained in:
Hermès Bélusca-Maïto 2017-08-03 14:56:07 +00:00
parent 54bb40541b
commit d767b361d2
2 changed files with 2 additions and 2 deletions

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

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