Alexandre Julliard : setupx: Use the correct field index for string substitutions.

Alexandre Julliard julliard at winehq.org
Tue Nov 3 15:37:15 CST 2009


Module: wine
Branch: master
Commit: 50bc161eb2b06cf9f2fbe09c311848d6f347fe1e
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=50bc161eb2b06cf9f2fbe09c311848d6f347fe1e

Author: Alexandre Julliard <julliard at 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;




More information about the wine-cvs mailing list