Inverted test of offset[3] for EW_DELREG meant that RegDeleteKey and RegDeleteValue were being swapped.
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@2036 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
3aac535b07
commit
6d8dc58dae
2 changed files with 2 additions and 1 deletions
|
@ -1168,7 +1168,7 @@ static int NSISCALL ExecuteEntry(entry *entry_)
|
|||
int rootkey=parm0;
|
||||
char *buf3=process_string_fromparm_tobuf(0x31);
|
||||
exec_errorflag++;
|
||||
if (parm3)
|
||||
if (!parm3)
|
||||
{
|
||||
HKEY hKey;
|
||||
if (RegOpenKeyEx((HKEY)rootkey,buf3,0,KEY_ALL_ACCESS,&hKey) == ERROR_SUCCESS)
|
||||
|
|
|
@ -3309,6 +3309,7 @@ int CEXEBuild::doCommand(int which_token, LineParser &line, FILE *fp, const char
|
|||
case TOK_DELETEREGKEY:
|
||||
{
|
||||
int a=1;
|
||||
ent.offsets[3]=0;
|
||||
if (which_token==TOK_DELETEREGKEY)
|
||||
{
|
||||
ent.offsets[3]=1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue