Issue 5888 fix - createKey and getKey in registry.d always use KEY_ALL_ACCESS

This commit is contained in:
denis-sh 2011-05-04 23:42:07 -07:00
parent 993352d93a
commit cc1b5e9abb

View file

@ -1084,7 +1084,7 @@ public:
HKEY hkey; HKEY hkey;
DWORD disposition; DWORD disposition;
LONG lRes = Reg_CreateKeyExA_( m_hkey, name, 0 LONG lRes = Reg_CreateKeyExA_( m_hkey, name, 0
, REGSAM.KEY_ALL_ACCESS , access
, null, hkey, disposition); , null, hkey, disposition);
if(ERROR_SUCCESS != lRes) if(ERROR_SUCCESS != lRes)
@ -1144,7 +1144,7 @@ public:
else else
{ {
HKEY hkey; HKEY hkey;
LONG lRes = Reg_OpenKeyExA_(m_hkey, name, REGSAM.KEY_ALL_ACCESS, hkey); LONG lRes = Reg_OpenKeyExA_(m_hkey, name, access, hkey);
if(ERROR_SUCCESS != lRes) if(ERROR_SUCCESS != lRes)
{ {