setupx: Use the correct field index for string substitutions.
This commit is contained in:
parent
f222a1654e
commit
50bc161eb2
|
@ -115,7 +115,7 @@ static const char *get_string_subst( HINF hinf, const char *str, unsigned int *l
|
|||
buffer[*len] = 0;
|
||||
|
||||
if (SetupFindFirstLineA( hinf, "Strings", buffer, &context ) &&
|
||||
SetupGetStringFieldA( &context, 0, subst, MAX_INF_STRING_LENGTH, NULL ))
|
||||
SetupGetStringFieldA( &context, 1, subst, MAX_INF_STRING_LENGTH, NULL ))
|
||||
{
|
||||
*len = strlen( subst );
|
||||
return subst;
|
||||
|
|
Loading…
Reference in New Issue