Fixed Unicode compiler crash (bug #1254, patch #300)

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@7224 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
anders_k 2020-10-08 00:25:32 +00:00
parent 0163d041ff
commit 4c29550d04
2 changed files with 3 additions and 1 deletions

View file

@ -18,6 +18,8 @@ Unicode is the now default.
\b Added nsExec /MBCS switch
\b Fixed Unicode compiler crash (\W{http://sf.net/p/nsis/bugs/1254}{bug #1254}, \W{http://sf.net/p/nsis/patches/300}{patch #300})
\S2{} Translations
\b Updated Corsican\#{(forum)} and Japanese (maboroshin PR\#{github.com/maboroshin})

View file

@ -43,7 +43,7 @@ unsigned int ExeHeadStringList::getnum() const
for(;;)
{
if ((pos+=cb) >= cbList) break;
cb = StrLenUTF16(p+=cb) + 1, ++num;
cb = (StrLenUTF16(p+=cb) + 1) * 2, ++num;
}
}
else