Installer would crash with certain combinations of language files when certain language strings were not referenced in all languages.
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3404 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
6dd9291512
commit
31e10cd7d3
3 changed files with 161 additions and 131 deletions
|
@ -76,7 +76,7 @@ class LangStringList : public SortedStringListND<struct langstring>
|
|||
const char *pos2name(int pos)
|
||||
{
|
||||
struct langstring *data=(struct langstring *)gr.get();
|
||||
|
||||
|
||||
if ((unsigned int)pos > (gr.getlen() / sizeof(struct langstring)))
|
||||
return 0;
|
||||
|
||||
|
@ -167,9 +167,9 @@ class StringsArray
|
|||
resize(idx+1);
|
||||
|
||||
int old = ((int*)offsets.get())[idx];
|
||||
|
||||
|
||||
((int*)offsets.get())[idx] = strings.add(str, strlen(str) + 1);
|
||||
|
||||
|
||||
return old;
|
||||
}
|
||||
|
||||
|
@ -300,8 +300,6 @@ struct LanguageTable {
|
|||
|
||||
int dlg_offset;
|
||||
|
||||
GrowBuf *strlist;
|
||||
|
||||
StringsArray *lang_strings;
|
||||
|
||||
NLF nlf;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue