more vc6 weirdness

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6885 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
kichik 2017-07-24 00:28:26 +00:00
parent e84cef0be8
commit 1f66c3bcb0

View file

@ -1235,11 +1235,11 @@ static int NSISCALL ExecuteEntry(entry *entry_)
break;
case EW_WRITEREG: // write registry value
{
int rootkey=parm0, type=parm4, rtype=parm5;
const TCHAR *rkn UNUSED=RegKeyHandleToName((HKEY)rootkey);
HKEY hKey;
int rootkey=parm0, type=parm4, rtype=parm5;
TCHAR *buf0=GetStringFromParm(0x02);
TCHAR *buf1=GetStringFromParm(0x11);
const TCHAR *rkn UNUSED=RegKeyHandleToName((HKEY)rootkey);
exec_error++;
if ((hKey = RegCreateScriptKey(rootkey, buf1, KEY_SET_VALUE)))