User vars inside strings should work now
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@2743 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
efe630b8d1
commit
af196fc600
1 changed files with 3 additions and 0 deletions
|
@ -539,7 +539,10 @@ int CEXEBuild::preprocess_string(char *out, const char *in)
|
||||||
|
|
||||||
while ( pUserVarName > p )
|
while ( pUserVarName > p )
|
||||||
{
|
{
|
||||||
|
char b = ((char*)p)[pUserVarName-p];
|
||||||
|
((char*)p)[pUserVarName-p] = 0;
|
||||||
int idxUserVar = m_UserVarNames.get((char*)p, pUserVarName-p);
|
int idxUserVar = m_UserVarNames.get((char*)p, pUserVarName-p);
|
||||||
|
((char*)p)[pUserVarName-p] = b;
|
||||||
if ( idxUserVar >= 0 )
|
if ( idxUserVar >= 0 )
|
||||||
{
|
{
|
||||||
// Well, using variables inside string formating doens't mean
|
// Well, using variables inside string formating doens't mean
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue