mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
index is 1-based at this point, index == line->nb_fields is the last
field and is valid svn path=/trunk/; revision=17388
This commit is contained in:
parent
7d093589b4
commit
33904bcc83
1 changed files with 3 additions and 3 deletions
|
@ -1714,7 +1714,7 @@ BOOL WINAPI SetupGetBinaryField( PINFCONTEXT context, DWORD index, BYTE *buffer,
|
||||||
SetLastError( ERROR_LINE_NOT_FOUND );
|
SetLastError( ERROR_LINE_NOT_FOUND );
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
if (!index || index >= line->nb_fields)
|
if (!index || index > line->nb_fields)
|
||||||
{
|
{
|
||||||
SetLastError( ERROR_INVALID_PARAMETER );
|
SetLastError( ERROR_INVALID_PARAMETER );
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
@ -1773,7 +1773,7 @@ BOOL WINAPI SetupGetMultiSzFieldA( PINFCONTEXT context, DWORD index, PSTR buffer
|
||||||
SetLastError( ERROR_LINE_NOT_FOUND );
|
SetLastError( ERROR_LINE_NOT_FOUND );
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
if (!index || index >= line->nb_fields)
|
if (!index || index > line->nb_fields)
|
||||||
{
|
{
|
||||||
SetLastError( ERROR_INVALID_PARAMETER );
|
SetLastError( ERROR_INVALID_PARAMETER );
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
@ -1822,7 +1822,7 @@ BOOL WINAPI SetupGetMultiSzFieldW( PINFCONTEXT context, DWORD index, PWSTR buffe
|
||||||
SetLastError( ERROR_LINE_NOT_FOUND );
|
SetLastError( ERROR_LINE_NOT_FOUND );
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
if (!index || index >= line->nb_fields)
|
if (!index || index > line->nb_fields)
|
||||||
{
|
{
|
||||||
SetLastError( ERROR_INVALID_PARAMETER );
|
SetLastError( ERROR_INVALID_PARAMETER );
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
Loading…
Reference in a new issue