mirror of
https://github.com/reactos/reactos.git
synced 2025-05-20 01:24:11 +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:
parent
54bb40541b
commit
d767b361d2
2 changed files with 2 additions and 2 deletions
|
@ -1459,7 +1459,7 @@ InfGetStringField (
|
||||||
PCHAR Ptr;
|
PCHAR Ptr;
|
||||||
SIZE_T Size;
|
SIZE_T Size;
|
||||||
|
|
||||||
if ((Context == NULL) || (Context->Line == NULL) || (FieldIndex == 0))
|
if ((Context == NULL) || (Context->Line == NULL))
|
||||||
{
|
{
|
||||||
// DPRINT("Invalid parameter\n");
|
// DPRINT("Invalid parameter\n");
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
|
@ -548,7 +548,7 @@ InfpGetStringField(PINFCONTEXT Context,
|
||||||
PWCHAR Ptr;
|
PWCHAR Ptr;
|
||||||
ULONG Size;
|
ULONG Size;
|
||||||
|
|
||||||
if (Context == NULL || Context->Line == NULL || FieldIndex == 0)
|
if (Context == NULL || Context->Line == NULL)
|
||||||
{
|
{
|
||||||
DPRINT("Invalid parameter\n");
|
DPRINT("Invalid parameter\n");
|
||||||
return INF_STATUS_INVALID_PARAMETER;
|
return INF_STATUS_INVALID_PARAMETER;
|
||||||
|
|
Loading…
Reference in a new issue