Commit 3ebeb237 authored by Ge van Geldorp's avatar Ge van Geldorp Committed by Alexandre Julliard

index is 1-based at this point, index == line->nb_fields is the last

field and is valid.
parent 074d9e4c
......@@ -1700,7 +1700,7 @@ BOOL WINAPI SetupGetBinaryField( PINFCONTEXT context, DWORD index, BYTE *buffer,
SetLastError( ERROR_LINE_NOT_FOUND );
return FALSE;
}
if (!index || index >= line->nb_fields)
if (!index || index > line->nb_fields)
{
SetLastError( ERROR_INVALID_PARAMETER );
return FALSE;
......@@ -1759,7 +1759,7 @@ BOOL WINAPI SetupGetMultiSzFieldA( PINFCONTEXT context, DWORD index, PSTR buffer
SetLastError( ERROR_LINE_NOT_FOUND );
return FALSE;
}
if (!index || index >= line->nb_fields)
if (!index || index > line->nb_fields)
{
SetLastError( ERROR_INVALID_PARAMETER );
return FALSE;
......@@ -1808,7 +1808,7 @@ BOOL WINAPI SetupGetMultiSzFieldW( PINFCONTEXT context, DWORD index, PWSTR buffe
SetLastError( ERROR_LINE_NOT_FOUND );
return FALSE;
}
if (!index || index >= line->nb_fields)
if (!index || index > line->nb_fields)
{
SetLastError( ERROR_INVALID_PARAMETER );
return FALSE;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment