mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-29 04:13:32 +00:00
[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:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user