Module: wine Branch: master Commit: 50bc161eb2b06cf9f2fbe09c311848d6f347fe1e URL: http://source.winehq.org/git/wine.git/?a=commit;h=50bc161eb2b06cf9f2fbe09c31...
Author: Alexandre Julliard julliard@winehq.org Date: Fri Oct 30 19:42:44 2009 +0100
setupx: Use the correct field index for string substitutions.
---
dlls/setupx.dll16/infparse.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/setupx.dll16/infparse.c b/dlls/setupx.dll16/infparse.c index d6cbed0..0fbc25d 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;