use RegCreateKeyEx instead of RegCreateKey to hopefully solve the 64-bit Windows 2003 Server problem with WriteRegStr

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3661 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
kichik 2004-09-24 12:58:43 +00:00
parent 28c2e72073
commit efce592be4

View file

@ -1166,7 +1166,7 @@ static int NSISCALL ExecuteEntry(entry *entry_)
char *buf0=GetStringFromParm(0x02);
char *buf1=GetStringFromParm(0x11);
exec_error++;
if (RegCreateKey((HKEY)rootkey,buf1,&hKey) == ERROR_SUCCESS)
if (RegCreateKeyEx((HKEY)rootkey,buf1,0,0,REG_OPTION_NON_VOLATILE,KEY_SET_VALUE,0,&hKey,0) == ERROR_SUCCESS)
{
LPBYTE data = (LPBYTE) buf2;
DWORD size = 0;