setupx: Use the correct field index for string substitutions.

This commit is contained in:
Alexandre Julliard 2009-10-30 19:42:44 +01:00
parent f222a1654e
commit 50bc161eb2
1 changed files with 1 additions and 1 deletions

View File

@ -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;