fixed bug #1178756 - EnumRegValue now sets the error flag if the enumeration index is out of range
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3951 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
a28ec7b3c1
commit
7c0a2a1851
2 changed files with 8 additions and 3 deletions
|
@ -1223,7 +1223,11 @@ static int NSISCALL ExecuteEntry(entry *entry_)
|
|||
{
|
||||
DWORD d=NSIS_MAX_STRLEN-1;
|
||||
if (parm4) RegEnumKey(key,b,p,d);
|
||||
else RegEnumValue(key,b,p,&d,NULL,NULL,NULL,NULL);
|
||||
else if (RegEnumValue(key,b,p,&d,NULL,NULL,NULL,NULL)!=ERROR_SUCCESS)
|
||||
{
|
||||
exec_error++;
|
||||
break;
|
||||
}
|
||||
p[NSIS_MAX_STRLEN-1]=0;
|
||||
RegCloseKey(key);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue