Additional error checking by Jim Park.
Also some cleaning. git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6058 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
e438c2092b
commit
cefeec3676
6 changed files with 11 additions and 18 deletions
|
@ -109,6 +109,7 @@ class UserVarsStringList : public SortedStringListND<struct uservarstring>
|
|||
int inc_reference(int idx)
|
||||
{
|
||||
int pos=get_internal_idx(idx);
|
||||
if (pos==-1) return -1;
|
||||
return ((struct uservarstring*) m_gr.get())[pos].reference++;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue