From 50bc161eb2b06cf9f2fbe09c311848d6f347fe1e Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Fri, 30 Oct 2009 19:42:44 +0100 Subject: [PATCH] setupx: Use the correct field index for string substitutions. --- dlls/setupx.dll16/infparse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/setupx.dll16/infparse.c b/dlls/setupx.dll16/infparse.c index d6cbed0085..0fbc25dfdf 100644 --- a/dlls/setupx.dll16/infparse.c +++ b/dlls/setupx.dll16/infparse.c @@ -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;